2024-09-26 01:23:16 +02:00
|
|
|
name: Release
|
|
|
|
on:
|
2024-09-20 04:42:15 +02:00
|
|
|
push:
|
2024-09-26 01:23:16 +02:00
|
|
|
tags:
|
|
|
|
- '*'
|
2024-09-20 04:42:15 +02:00
|
|
|
jobs:
|
2024-09-26 01:23:16 +02:00
|
|
|
build:
|
2024-09-20 04:42:15 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
2024-09-26 01:27:11 +02:00
|
|
|
contents: write
|
2024-09-20 04:42:15 +02:00
|
|
|
steps:
|
2024-09-26 01:23:16 +02:00
|
|
|
- name: Clone
|
2024-09-20 04:42:15 +02:00
|
|
|
uses: actions/checkout@v3
|
2024-09-26 02:32:41 +02:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2024-09-26 01:47:06 +02:00
|
|
|
|
2024-09-20 04:42:15 +02:00
|
|
|
- name: Install Deno
|
|
|
|
uses: denoland/setup-deno@v1
|
|
|
|
with:
|
|
|
|
deno-version: v1.x
|
2024-09-26 01:47:06 +02:00
|
|
|
|
2024-09-26 02:32:41 +02:00
|
|
|
- name: Install Go
|
|
|
|
uses: actions/setup-go@v5
|
2024-09-26 02:34:00 +02:00
|
|
|
with:
|
|
|
|
go-version: '>=1.20.1'
|
2024-09-26 02:32:41 +02:00
|
|
|
|
2024-09-26 01:23:16 +02:00
|
|
|
- name: Compile
|
|
|
|
run: "deno task compile"
|
2024-09-26 01:54:55 +02:00
|
|
|
|
2024-09-26 01:23:16 +02:00
|
|
|
- name: Release
|
2024-09-26 02:32:41 +02:00
|
|
|
id: use-go-action
|
2024-09-26 02:30:41 +02:00
|
|
|
uses: "https://gitea.com/actions/release-action@main"
|
2024-09-26 01:23:16 +02:00
|
|
|
with:
|
2024-09-26 02:35:51 +02:00
|
|
|
files: "bunker"
|
2024-09-26 02:43:09 +02:00
|
|
|
api_key: '${{secrets.GITEA_TOKEN}}'
|
2024-09-26 01:23:16 +02:00
|
|
|
|
2024-09-20 04:42:15 +02:00
|
|
|
|