unified ci workflow
This commit is contained in:
parent
237d4c4349
commit
25378d2d3c
@ -1,24 +1,38 @@
|
||||
name: Build and Release
|
||||
name: Create Version Tag
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v*"
|
||||
branches:
|
||||
- main
|
||||
- "prerelease-*"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
version-check:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
tag_created: ${{ steps.tag.outputs.tag_created }}
|
||||
tag_name: ${{ steps.tag.outputs.tag_name }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Run version check
|
||||
id: tag
|
||||
uses: https://git.cyborggrizzly.com/bearmetal/ci-actions/version-check@v1
|
||||
|
||||
build-release:
|
||||
if: needs.version-check.outputs.tag_created == 'true'
|
||||
needs: version-check
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Build and release binaries
|
||||
uses: https://git.cyborggrizzly.com/bearmetal/ci-actions/deno-publish@main
|
||||
uses: https://git.cyborggrizzly.com/bearmetal/ci-actions/deno-release@main
|
||||
with:
|
||||
entrypoint: main.ts
|
||||
compile-flags: "--allow-read --allow-write --allow-env --allow-net"
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.GIT_PAT }}
|
||||
|
||||
publish:
|
||||
publish-release:
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
@ -1,13 +0,0 @@
|
||||
name: Create Version Tag
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: https://git.cyborggrizzly.com/bearmetal/ci-actions/version-check@v1
|
Loading…
x
Reference in New Issue
Block a user