Skip to content

v0.20.0

v0.20.0 #39

Workflow file for this run

# https://github.com/goreleaser/goreleaser-action
name: Release
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
Test:
runs-on: ubuntu-latest
if: ${{github.repository == 'wa-lang/wa'}}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- run: make ci-test-all
Publish:
runs-on: ubuntu-latest
if: ${{github.repository == 'wa-lang/wa'}}
needs: [Test]
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
# go1.21 support wasip1/wasm
go-version: 1.21
- run: go run ./builder
- name: Run Releaser
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.WA_DEPLOY }}
artifacts: "_output/*.zip,_output/*.checksums.txt"
- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.WA_DEPLOY_DOCKER}}
- name: 'Build Wa Image'
run: |
go build
docker build . --tag ghcr.io/wa-lang/wa:${{ github.ref_name }}
docker push ghcr.io/wa-lang/wa:${{ github.ref_name }}