Skip to content

Commit

Permalink
ci: new release methodology (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher authored Oct 22, 2023
1 parent dd18ef3 commit b5fc33b
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 46 deletions.
46 changes: 0 additions & 46 deletions .github/workflows/CI.yml

This file was deleted.

40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
name: CI

on:
pull_request:
branches: [master]
types: [opened, synchronize, reopened]
push:
branches: [master]
workflow_dispatch:

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Release
id: setup_release
uses: LizardByte/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Create/Update GitHub Release
if: >-
(github.event_name == 'push' && github.ref == 'refs/heads/master') &&
steps.setup_release.outputs.publish_release == 'true'
uses: LizardByte/[email protected]
with:
allowUpdates: true
artifacts: ""
body: ${{ steps.setup_release.outputs.release_body }}
discussionCategory: announcements
generateReleaseNotes: ${{ steps.setup_release.outputs.release_generate_release_notes }}
name: ${{ steps.setup_release.outputs.release_tag }}
prerelease: ${{ steps.setup_release.outputs.publish_pre_release }}
tag: ${{ steps.setup_release.outputs.release_tag }}
token: ${{ secrets.GH_BOT_TOKEN }}

0 comments on commit b5fc33b

Please sign in to comment.