Skip to content

Commit

Permalink
Test "Tag and Release" workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rbrazinskas committed Mar 5, 2024
1 parent 8cd7581 commit 1fa45df
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/tag_and_release_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Create tag and release - test

on:
push:
paths:
- 'CHANGELOG.rst'

jobs:
check_version:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check version in changelog
run: bash ./tag-from-pipeline.sh verify_changelog_version

create_tag_and_release:
needs: check_version
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Create new tag and release
run: bash ./tag-from-pipeline.sh create_new_tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# GitHub works so that events ('release' event in this case) triggered while using the GITHUB_TOKEN will not create a
# new workflow run. This means the publishing workflow will not be triggered even though a new release is successfully
# created by the above job create_tag_and_release. Here we trigger the said workflow manually.
trigger_publishing:
needs: create_tag_and_release
uses: ./.github/workflows/publish.yml
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
Changelog
=========

Version 14.0-alpha
============

* Test "tag and Release" GitLab workflow. `#128 <https://github.com/iqm-finland/cirq-on-iqm/pull/128>`_

Version 13.2
============

Expand Down

0 comments on commit 1fa45df

Please sign in to comment.