Skip to content

update readme and license #4

update readme and license

update readme and license #4

Workflow file for this run

name: release
on:
push:
tags: ["v*"]
workflow_dispatch:
permissions:
contents: write
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
name: decker-linux-amd64
- target: aarch64-unknown-linux-gnu
os: ubuntu-latest
name: decker-linux-arm64
- target: x86_64-apple-darwin
os: macos-latest
name: decker-darwin-amd64
- target: aarch64-apple-darwin
os: macos-latest
name: decker-darwin-arm64
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: Compile
run: |
deno compile \
--allow-all \
--target ${{ matrix.target }} \
--include commands \
--include containers \
--include generators \
--include recipes \
--include renderers \
--include decker.example.ts \
--output ${{ matrix.name }} \
cli.ts
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.name }}
path: ${{ matrix.name }}
release:
if: startsWith(github.ref, 'refs/tags/')
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
path: artifacts
merge-multiple: true
- env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create "${{ github.ref_name }}" \
--repo "${{ github.repository }}" \
--title "${{ github.ref_name }}" \
--generate-notes \
artifacts/*