Skip to content

Commit

Permalink
Publish example recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
majori committed Nov 12, 2023
1 parent 3ed70f7 commit 448ff45
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/publish-examples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Test

on:
push:
branches:
- main

jobs:
publish:
name: Publish example recipes
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v3

- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/setup-go@v3
with:
go-version: "1.21"

- uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-golang-${{ hashFiles('go.sum') }}
restore-keys: |
${{ runner.os }}-golang-
- uses: arduino/setup-task@v1
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }} # https://github.com/arduino/setup-task#repo-token

- name: Push example recipes to GitHub Packages
run: task run -- push examples/minimal oci://ghcr.io/futurice/jalapeno/examples/minimal

0 comments on commit 448ff45

Please sign in to comment.