Skip to content

release

release #23

Workflow file for this run

name: release
on:
release:
types: [prereleased]
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: denoland/setup-deno@main
with:
deno-version: "~1.34"
- uses: actions/cache@v3
with:
path: ~/.cache/deno # see https://deno.land/manual/linking_to_external_code
key: ${{ runner.os }}-deno # it seems there's no particular cache keying required
restore-keys: |
${{ runner.os }}-deno
- run: ./build.sh
- name: upload x86_64-unknown-linux-gnu
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./bin/collie-x86_64-unknown-linux-gnu.tar.gz
asset_name: collie-x86_64-unknown-linux-gnu.tar.gz
asset_content_type: application/gzip
- name: upload x86_64-apple-darwin
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./bin/collie-x86_64-apple-darwin.tar.gz
asset_name: collie-x86_64-apple-darwin.tar.gz
asset_content_type: application/gzip
- name: upload aarch64-apple-darwin
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./bin/collie-aarch64-apple-darwin.tar.gz
asset_name: collie-aarch64-apple-darwin.tar.gz
asset_content_type: application/gzip
- name: upload x86_64-pc-windows-msvc
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./bin/collie-x86_64-pc-windows-msvc.exe
asset_name: collie-x86_64-pc-windows-msvc.exe
asset_content_type: application/vnd.microsoft.portable-executable