44 lines
882 B
YAML
44 lines
882 B
YAML
name: Release
|
|
on:
|
|
push:
|
|
tags:
|
|
- '*'
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- name: Clone
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Install Deno
|
|
uses: denoland/setup-deno@v1
|
|
with:
|
|
deno-version: v1.x
|
|
|
|
- name: Install Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: '>=1.20.1'
|
|
|
|
- name: Compile
|
|
run: "deno task compile"
|
|
|
|
# - name: Upload Artifact
|
|
# uses: "https://gitea.com/actions/upload-artifact@v3"
|
|
# with:
|
|
# name: bunker-artifact
|
|
# path: bunker
|
|
#
|
|
- name: Release
|
|
id: use-go-action
|
|
uses: "https://gitea.com/actions/release-action@main"
|
|
with:
|
|
files: "bunker"
|
|
api_key: '${{secrets.RELEASE_TOKEN}}'
|
|
|
|
|