chore(build) Update upload-release-assets #27
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: Build | |
on: | |
push: | |
tags: | |
- 'v[0-9]+.[0-9]+.[0-9]+' | |
workflow_dispatch: | |
jobs: | |
build-and-deploy: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Install Deno 🦕 | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: v1.x | |
- name: 'Build Executable' | |
run: deno task build | |
- name: Upload Executables as Artifacts | |
if: github.ref_type == 'branch' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ format('dash-{0}-{1}-{2}', github.run_id, github.run_number, github.run_attempt) }} | |
path: 'executables/*' | |
- name: Upload Executables as Release | |
if: github.ref_type == 'tag' | |
uses: AButler/upload-release-assets@v3.0 | |
with: | |
files: 'executables/*' | |
release-tag: ${{ github.ref_name }} | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |