Skip to content

Commit

Permalink
ci: run wmllint and wmlindent on GitLab, automatically create GitLab …
Browse files Browse the repository at this point in the history
…release on tags
  • Loading branch information
konecnyjakub committed Sep 14, 2024
1 parent 5424402 commit 46110bb
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
stages:
- test
- announce

.test_job: &test_job
stage: test

script:
- wmllint --dryrun /usr/share/games/wesnoth/data/core .
- wmlindent --dryrun .

.publish_job: &publish_job
stage: publish
script:
- wesnoth_addon_manager -u . --port $SERVER_PORT --pbl-key passphrase $ADDON_PASSPHRASE
only:
- tags@konecnyjakub/Danse_Macabre
environment:
name: addons/$WESNOTH_VERSION
url: https://add-ons.wesnoth.org/$WESNOTH_VERSION/

test:1.18:
<<: *test_job
image: konecnyjakub/wesnoth:1.18
variables:
WESNOTH_VERSION: "1.18"

announce:gitlab:
stage: announce
image: registry.gitlab.com/gitlab-org/release-cli:latest
only:
- tags@konecnyjakub/Danse_Macabre
script:
- echo "Creating GitLab release"
release:
tag_name: $CI_COMMIT_TAG
name: "Danse Macabre $CI_COMMIT_TAG"
description: "./dist/RELEASE_NOTES"

0 comments on commit 46110bb

Please sign in to comment.