Fuck you github, I added actions to make my life easier, not to have … #221
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: "Release version (major.minor.patch, without the v)" | ||
required: true | ||
jobs: | ||
build: | ||
uses: ./.github/workflows/build.yml | ||
with: | ||
version: ${{ github.event.inputs.version }} | ||
test: | ||
needs: build | ||
uses: ./.github/workflows/test.yml | ||
pack: | ||
needs: build | ||
uses: ./.github/workflows/pack.yml | ||
secrets: inherit | ||
release: | ||
needs: | ||
- test | ||
- pack | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: src | ||
pattern: * | ||
merge-multiple: true | ||
- name: Create release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: v${{ github.event.inputs.version }} | ||
release_name: Release v${{ github.event.inputs.version }} | ||
body: write the changelog you lazy fuk | ||
draft: true | ||
prerelease: false | ||
- name: Upload release assets | ||
id: upload-release-assets | ||
uses: dwenegar/upload-release-assets@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
release_id: ${{ steps.create_release.outputs.id }} | ||
assets_path: src/assets |