Skip to content

Commit

Permalink
chore: upload artifacts to release from Action
Browse files Browse the repository at this point in the history
  • Loading branch information
sdnts committed Apr 22, 2024
1 parent 5f988ff commit 4f243db
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,18 @@ on:
jobs:
tag:
runs-on: ubuntu-latest
permissions:
contents: write
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 }}

- uses: ncipollo/release-action@v1
with:
tag: ${{ github.event.inputs.version }}
draft: true

macos-aarch64:
needs: tag
Expand All @@ -28,6 +33,10 @@ jobs:
with:
name: zup-macos-aarch64
path: ./zig-out/bin/zup
- uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: "zig-out/bin/zup"

macos-x86_64:
needs: tag
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,8 @@ for use during development under `/devserver`. This is currently a JS project,
so it requires [Bun](https://bun.sh) installed. Run `bun install`, followed by
`bun run src/index.ts` to start up the mock server. Debug `zup` builds should
automatically talk to this dev server. Release builds talk to Zig / ZLS servers.

### Releases

Running the `Release` GitHub action with a version number tags the `HEAD` on `main`
and creates a pre-release. This must be published by a human manually.

0 comments on commit 4f243db

Please sign in to comment.