Skip to content

Release

Release #12

Workflow file for this run

name: Release
on:
release:
types: [published]
jobs:
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
strategy:
matrix:
# build and publish in parallel: linux/386, linux/amd64, linux/arm64, windows/386, windows/amd64, darwin/amd64, darwin/arm64
goos: [linux, windows, darwin]
goarch: ["386", amd64, arm64]
exclude:
- goarch: "386"
goos: darwin
- goarch: arm64
goos: windows
steps:
- name: checkout
uses: actions/checkout@v3
- name: release motion-poll
permissions: write-all

Check failure on line 26 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 26, Col: 7): Unexpected value 'permissions' .github/workflows/release.yml (Line: 37, Col: 7): Unexpected value 'permissions'
uses: wangyoucao577/go-release-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: "https://dl.google.com/go/go1.19.1.linux-amd64.tar.gz"
project_path: "./cmd/motion-poll"
binary_name: "motion-poll"
extra_files: LICENSE.txt README.md
- name: release set-time
permissions: write-all
uses: wangyoucao577/go-release-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: "https://dl.google.com/go/go1.19.1.linux-amd64.tar.gz"
project_path: "./cmd/set-time"
binary_name: "set-time"
extra_files: LICENSE.txt README.md
- name: release set-preset
permissions: write-all
uses: wangyoucao577/go-release-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: "https://dl.google.com/go/go1.19.1.linux-amd64.tar.gz"
project_path: "./cmd/set-preset"
binary_name: "set-preset"
extra_files: LICENSE.txt README.md
- name: release goto-preset
permissions: write-all
uses: wangyoucao577/go-release-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: "https://dl.google.com/go/go1.19.1.linux-amd64.tar.gz"
project_path: "./cmd/goto-preset"
binary_name: "goto-preset"
extra_files: LICENSE.txt README.md