Skip to content

feat: add launch demo and score breakdown (#6) #6

feat: add launch demo and score breakdown (#6)

feat: add launch demo and score breakdown (#6) #6

Workflow file for this run

name: release
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
github-release:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
- name: Verify version and tests
run: |
test "v$(bin/ipcheck --version | awk '{print $2}')" = "$GITHUB_REF_NAME"
bash test/smoke.sh
- name: Build source archive
run: |
git archive --format=tar.gz --prefix="ipcheck-${GITHUB_REF_NAME#v}/" \
--output="ipcheck-${GITHUB_REF_NAME#v}.tar.gz" "$GITHUB_REF_NAME"
sha256sum "ipcheck-${GITHUB_REF_NAME#v}.tar.gz" > "ipcheck-${GITHUB_REF_NAME#v}.tar.gz.sha256"
- name: Publish GitHub release
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release create "$GITHUB_REF_NAME" \
"ipcheck-${GITHUB_REF_NAME#v}.tar.gz" \
"ipcheck-${GITHUB_REF_NAME#v}.tar.gz.sha256" \
--generate-notes \
--title "ipcheck $GITHUB_REF_NAME"