Skip to content

Commit

Permalink
new file: .github/workflows/master-push
Browse files Browse the repository at this point in the history
- Adding a release workflow file, generating a new release on each push
  to the default branch
  • Loading branch information
F-WRunTime committed Oct 2, 2024
1 parent ff5650a commit 9933b3f
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/master-push
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 9933b3f

Please sign in to comment.