Release Artifacts for Spin Checklist app #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Artifacts for Spin Checklist app | |
on: | |
workflow_dispatch: | |
inputs: | |
tag: | |
type: string | |
description: 'new tag for this push' | |
required: true | |
env: | |
REGISTRY: ghcr.io | |
jobs: | |
echo-inputs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Echo Inputs | |
run: | | |
echo tag: ${{ github.event.inputs.tag }} | |
build-and-push: | |
permissions: write-all | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 19 | |
- name: setup spin | |
uses: fermyon/actions/spin/setup@v1 | |
with: | |
version: v2.0.0 | |
plugins: js2wasm | |
github_token: ${{ github.token }} | |
- name: npm install | |
run: npm install | |
- name: build and push | |
uses: fermyon/actions/spin/push@v1 | |
with: | |
registry: ${{ env.REGISTRY }} | |
registry_username: ${{ github.actor }} | |
registry_password: ${{ secrets.GITHUB_TOKEN }} | |
registry_reference: "${{ env.REGISTRY }}/macolso/spin-checklist:${{ github.event.inputs.tag }}" | |