Skip to content

Commit

Permalink
add release action
Browse files Browse the repository at this point in the history
  • Loading branch information
SebRollen committed Apr 15, 2021
1 parent c265390 commit 77a5b2a
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release
on:
push:
branches:
- main

jobs:
deploy:
name: Tag if new release
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Read version number
id: read_toml
uses: outcome-co/[email protected]
with:
path: Cargo.toml
key: package.version
- name: Set tag env variable
run: echo IMAGE_TAG=v${{steps.read_toml.outputs.package_version}} >> $GITHUB_ENV
- uses: ncipollo/release-action@v1
continue-on-error: true
with:
allowUpdates: false
tag: ${{ env.IMAGE_TAG }}
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 77a5b2a

Please sign in to comment.