Skip to content

Instantly share code, notes, and snippets.

@antklim
Last active January 21, 2023 00:12
Show Gist options
  • Save antklim/678d13944974cf082ce91bb556afc956 to your computer and use it in GitHub Desktop.
Save antklim/678d13944974cf082ce91bb556afc956 to your computer and use it in GitHub Desktop.
name: Release
on: workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup repo
uses: actions/checkout@v3
- name: Setup Language
uses: actions/setup-language@v1
with:
lang-version: v1.x
- name: Build artifacts
run: |
<some build steps>
- name: Compute checksums
run: |
for file in *; do sha256sum $file >> checksums.txt; done
- name: Archive distribution
uses: actions/upload-artifact@v3
with:
name: release
path: dist/
retention-days: 7
release:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Download binaries
uses: actions/download-artifact@v3
with:
name: release
path: dist/
- name: Release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment