Move GITHUB_TOKEN in workflow…step[*].env #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- act* | |
jobs: | |
build: | |
permissions: | |
contents: write | |
env: | |
OUT_DIR: ${{ github.workspace }}/_OUTPUT | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkoug | |
uses: actions/checkout@v4 | |
- name: Setup Go toolchain | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: 'go.mod' | |
- name: Make | |
run: make build.all | |
- name: Create Release | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
run: | | |
_opstools/octoact_create_release \ | |
-repo-owner ${{ github.repository_owner }} \ | |
-repo Contacts.app \ | |
-release-name "Release ${{ github.ref_type }} ${{ github.ref_name }}" \ | |
-assets-dir ${{ env.OUT_DIR }} | |
- name: Upload Artefact | |
uses: actions/upload-artifact@v3 | |
with: | |
if-no-files-found: error | |
name: release_files | |
path: ${{ env.OUT_DIR }} |