mirror of
https://github.com/kou029w/uzura.git
synced 2025-01-19 08:28:09 +00:00
24 lines
665 B
YAML
24 lines
665 B
YAML
|
name: release
|
||
|
on:
|
||
|
workflow_dispatch:
|
||
|
inputs:
|
||
|
version:
|
||
|
description: Specify version
|
||
|
required: true
|
||
|
jobs:
|
||
|
main:
|
||
|
if: github.ref == 'refs/heads/main'
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v3
|
||
|
- run: sudo bin/build
|
||
|
- uses: actions/github-script@v6
|
||
|
with:
|
||
|
script: |
|
||
|
const release = require("./.github/scripts/release.cjs");
|
||
|
const image = "uzura-amd64.img.gz";
|
||
|
const version = process.env.UZURA_VERSION;
|
||
|
await release({ image, version, github, context });
|
||
|
env:
|
||
|
UZURA_VERSION: "${{ github.event.inputs.version }}"
|