generated from MechanicalFlower/godot-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: upgrade workflow from godot-template
- Loading branch information
1 parent
7f3d1dc
commit 2dd4041
Showing
19 changed files
with
210 additions
and
256 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
godot: | ||
version: '4.1.2' | ||
game: | ||
name: Marble | ||
version: '1.4.1' |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Changelog Verifier | ||
|
||
on: | ||
pull_request: | ||
types: [opened, edited, review_requested, synchronize, reopened, ready_for_review, labeled, unlabeled] | ||
|
||
jobs: | ||
# Enforces the update of a changelog file on every pull request | ||
verify-changelog: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dangoslen/changelog-enforcer@v3 | ||
with: | ||
skipLabels: "autocut, skip-changelog" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Dependabot PR actions | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened, labeled, unlabeled] | ||
|
||
jobs: | ||
dependabot: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
contents: write | ||
|
||
if: ${{ github.actor == 'dependabot[bot]' }} | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Update the changelog | ||
uses: dangoslen/dependabot-changelog-helper@v3 | ||
with: | ||
version: 'Unreleased' | ||
|
||
- name: Commit the changes | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: "chore(changelog): automatic update to add dependabot deps bump" | ||
branch: ${{ github.head_ref }} | ||
commit_user_name: dependabot[bot] | ||
commit_user_email: [email protected] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Link Checker | ||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
linkchecker: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: lychee Link Checker | ||
id: lychee | ||
uses: lycheeverse/lychee-action@v1 | ||
with: | ||
args: --accept=200,403,429 "**/*.html" "**/*.md" "**/*.txt" "**/*.json" --exclude "file:///github/workspace/*" --exclude-path ".github/renovate.json" --exclude-mail | ||
fail: true | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Lint PR Title | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- edited | ||
- synchronize | ||
|
||
permissions: | ||
pull-requests: read | ||
|
||
jobs: | ||
main: | ||
name: Validate PR title | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: amannn/action-semantic-pull-request@v5 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
scopes: | | ||
addons | ||
assets | ||
scripts | ||
scenes | ||
dependabot | ||
workflows | ||
readme | ||
changelog | ||
deps | ||
requireScope: false | ||
validateSingleCommit: true | ||
validateSingleCommitMatchesPrTitle: true |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,9 @@ on: | |
workflow_run: | ||
workflows: ["Build"] | ||
types: [completed] | ||
tags: ['[0-9]+.[0-9]+.[0-9]+'] | ||
|
||
env: | ||
tag_name: ${{ github.event.workflow_run.head_branch }} | ||
|
||
jobs: | ||
create_release: | ||
|
@@ -14,18 +16,24 @@ jobs: | |
|
||
name: Create Release | ||
steps: | ||
- name: Check Tag | ||
run: | | ||
if [[ ! ${{ env.tag_name }} =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then | ||
exit 1 | ||
fi | ||
- name: Create Draft release | ||
run: | | ||
gh release create "$GITHUB_REF_NAME" \ | ||
--repo="$GITHUB_REPOSITORY" \ | ||
--title="v$GITHUB_REF_NAME" \ | ||
gh release create "${{ env.tag_name }}" \ | ||
--repo="${{ github.repository }}" \ | ||
--title="v${{ env.tag_name }}" \ | ||
--draft | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
publish: | ||
needs: create_release | ||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-20.04 | ||
|
||
strategy: | ||
fail-fast: false | ||
|
@@ -46,26 +54,28 @@ jobs: | |
name: ${{ matrix.preset }} Publish | ||
steps: | ||
- name: Download artifact | ||
uses: ./.github/actions/upload-artifact | ||
uses: dawidd6/action-download-artifact@v2 | ||
with: | ||
name: Marble-${{ matrix.platform }}-v$GITHUB_REF_NAME | ||
workflow: ${{ github.event.workflow_run.workflow_id }} | ||
name: Greeter-${{ matrix.platform }}-v${{ env.tag_name }} | ||
path: dist/${{ matrix.platform }} | ||
skip_unpack: true | ||
|
||
- name: Upload to release | ||
run: | | ||
gh release upload "$GITHUB_REF_NAME" \ | ||
--repo="$GITHUB_REPOSITORY" \ | ||
--clobber \ | ||
dist/${{ matrix.platform }}/Marble-${{ matrix.platform }}-v$GITHUB_REF_NAME.zip | ||
gh release upload "${{ env.tag_name }}" \ | ||
--repo="${{ github.repository }}" \ | ||
--clobber \ | ||
dist/${{ matrix.platform }}/Greeter-${{ matrix.platform }}-v${{ env.tag_name }}.zip | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Upload to itch.io | ||
uses: josephbmanley/[email protected] | ||
env: | ||
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_API_KEY }} | ||
CHANNEL: ${{ matrix.platform }}-v$GITHUB_REF_NAME | ||
ITCH_GAME: marble | ||
CHANNEL: ${{ matrix.platform }} | ||
ITCH_GAME: greeter | ||
ITCH_USER: mechanical-flower | ||
PACKAGE: dist/${{ matrix.platform }}/Marble-${{ matrix.platform }}-v$GITHUB_REF_NAME.zip | ||
VERSION: $GITHUB_REF_NAME | ||
PACKAGE: dist/${{ matrix.platform }}/Greeter-${{ matrix.platform }}-v${{ env.tag_name }}.zip | ||
VERSION: ${{ env.tag_name }} |
This file was deleted.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# CHANGELOG | ||
Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) | ||
|
||
## [Unreleased] | ||
### Added | ||
### Changed | ||
### Deprecated | ||
### Removed | ||
### Fixed | ||
### Security | ||
### Dependencies | ||
|
||
[Unreleased]: https://github.com/MechanicalFlower/Marble/compare/1.4.1...HEAD |
Oops, something went wrong.