Skip to content
This repository was archived by the owner on Mar 16, 2024. It is now read-only.

Commit 20772f0

Browse files
committed
on-tag workflow
Signed-off-by: Vincent Fiduccia <[email protected]>
1 parent 18f36cf commit 20772f0

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/release.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
permissions:
9+
contents: write
10+
packages: write
11+
12+
jobs:
13+
publish:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
- uses: acorn-io/actions-setup@v1
18+
- uses: acorn-io/actions-login@v1
19+
with:
20+
registry: ghcr.io
21+
username: ${{ github.actor}}
22+
password: ${{secrets.GITHUB_TOKEN }}
23+
- name: Set Tag
24+
run: |
25+
echo "TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
26+
- name: Build & Push
27+
run: |
28+
echo "Pushing to ghcr.io/${{github.repository}}:$TAG"
29+
acorn build --push -t ghcr.io/${{github.repository}}:$TAG .

0 commit comments

Comments
 (0)