Skip to content

Commit

Permalink
ci: add wkg oci publish
Browse files Browse the repository at this point in the history
  • Loading branch information
ricochet committed Dec 5, 2024
1 parent 3191bc6 commit d2dfccf
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Publish a Wasm Component package to GitHub Artifacts

on:
push:
tags:
- v*
workflow_dispatch:

env:
IMAGE_NAME: ${{ github.repository }}

jobs:
publish:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/WebAssembly/wasi/io
tags: |
type=semver,pattern={{version}}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- uses: bytecodealliance/wkg-github-action
with:
description: 'A WASI API providing I/O stream abstractions.'
oci-reference-without-tag: 'ghcr.io/WebAssembly/wasi/io'
source: 'https://github.com/webassembly/wasi'
homepage: 'https://wasi.dev'
version: ${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}
licenses: 'Apache-2.0 WITH LLVM-exception'

0 comments on commit d2dfccf

Please sign in to comment.