Why... #24
Workflow file for this run
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: Publish | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build-linux: | |
permissions: | |
id-token: write # This is required for requesting the JWT | |
contents: write # This is required for actions/checkout | |
name: Publish Binaries | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Deno | |
# uses: denoland/setup-deno@v1 | |
uses: denoland/setup-deno@61fe2df320078202e33d7d5ad347e7dcfa0e8f31 # v1.1.2 | |
with: | |
deno-version: v2.x | |
- name: Build | |
run: | | |
deno install | |
deno publish | |
deno compile -A -o bin/quicksubmit-linux index.ts | |
deno compile -A -o bin/quicksubmit-win.exe --target x86_64-pc-windows-msvc index.ts | |
deno compile -A -o bin/quicksubmit-macos --target x86_64-apple-darwin index.ts | |
- name: Upload Linux binaries to release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: bin/quicksubmit-linux | |
asset_name: quicksubmit-linux-amd64 | |
tag: ${{ github.ref }} | |
overwrite: true | |
- name: Upload macOS binaries to release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: bin/quicksubmit-macos | |
asset_name: quicksubmit-macos-amd64 | |
tag: ${{ github.ref }} | |
overwrite: true | |
- name: Upload Windows binaries to release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: bin/quicksubmit-win.exe | |
asset_name: quicksubmit-windows-amd64.exe | |
tag: ${{ github.ref }} | |
overwrite: true |