Skip to content

Commit

Permalink
Adding release workflow (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
F-WRunTime authored Oct 11, 2023
1 parent 906ee2e commit c23a4e2
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: 'Master Push'
on:
push:
branches:
- 'master'

jobs:

cut-release:
name: 'Cut Release'
runs-on: [self-hosted, linux, flyweight]
steps:
- name: 'Check out code'
uses: actions/checkout@v3
with:
ref: ${{ github.event.push.head.sha }}
fetch-depth: 0

- name: 'Create release'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -x
short_sha=$(git rev-parse --short ${{ github.sha }})
gh release create ${short_sha} --target ${{ github.sha }}

0 comments on commit c23a4e2

Please sign in to comment.