mirror of
https://github.com/Bismuth-Forge/bismuth.git
synced 2024-09-11 00:15:37 +03:00
chore: publish build artifacts on release (#162)
This commit is contained in:
parent
a4ede8d296
commit
303fa6c6f9
8
.github/scripts/tar-build.sh
vendored
Executable file
8
.github/scripts/tar-build.sh
vendored
Executable file
@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# SPDX-FileCopyrightText: 2021 Mikhail Zolotukhin <mail@genda.life>
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
set -e
|
||||
|
||||
tar czf build-artifacts.tar.gz --directory=build .
|
35
.github/workflows/release-please.yml
vendored
35
.github/workflows/release-please.yml
vendored
@ -13,6 +13,9 @@ jobs:
|
||||
release-please:
|
||||
name: Release Please
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
release_created: ${{ steps.release.outputs.release_created }}
|
||||
tag_name: ${{ steps.release.outputs.tag_name }}
|
||||
steps:
|
||||
- name: Release Please 🔖
|
||||
uses: GoogleCloudPlatform/release-please-action@v2
|
||||
@ -20,3 +23,35 @@ jobs:
|
||||
with:
|
||||
release-type: node
|
||||
package-name: release-please-action
|
||||
|
||||
publish-artifacts:
|
||||
name: Publish Artifacts
|
||||
runs-on: ubuntu-latest
|
||||
container: ubuntu:21.10
|
||||
env:
|
||||
DEBIAN_FRONTEND: noninteractive
|
||||
needs: release-please
|
||||
if: ${{ needs.release-please.outputs.release_created }}
|
||||
steps:
|
||||
- name: Checkout Code 🛎️
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Setup CI Utils ⚙️
|
||||
run: .github/scripts/utils-install.sh
|
||||
|
||||
- name: Build 🔧
|
||||
run: |
|
||||
npm install
|
||||
.github/scripts/sysdep-install.sh
|
||||
npm run build
|
||||
|
||||
- name: Package 📦
|
||||
run: |
|
||||
.github/scripts/tar-build.sh
|
||||
|
||||
- name: Publish 🎉
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
tag_name: ${{ needs.release-please.outputs.tag_name }}
|
||||
files: |
|
||||
build-artifacts.tar.gz
|
||||
|
Loading…
Reference in New Issue
Block a user