Skip to content

Commit

Permalink
chore: create release tags in a workflow_dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
sdnts committed Mar 10, 2024
1 parent 76eb0f6 commit d57a5b2
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
name: Release
on:
push:
branches:
- main
workflow_dispatch:
inputs:
version:
required: true
type: string

jobs:
tag:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- run: git tag ${{ github.event.inputs.version }}
- run: git push origin ${{ github.event.inputs.version }}


macos-aarch64:
needs: tag
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -15,6 +30,7 @@ jobs:
path: ./zig-out/bin/zup

macos-x86_64:
needs: tag
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -26,6 +42,7 @@ jobs:
path: ./zig-out/bin/zup

linux-aarch64:
needs: tag
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -37,6 +54,7 @@ jobs:
path: ./zig-out/bin/zup

linux-x86_64:
needs: tag
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit d57a5b2

Please sign in to comment.