Skip to content

Commit 71bc941

Browse files
committed
tag before building
This should allow to push the tag in the generated doc
1 parent 3f9757f commit 71bc941

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/ruby.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,17 @@ jobs:
3838
wget https://raw.githubusercontent.com/progit/progit2-pub/master/bootstrap.sh
3939
sh bootstrap.sh
4040
bundle install
41-
# Runs a set of commands using the runners shell
42-
- name: build book
43-
run: |
44-
bundle exec rake book:build_action
45-
bundle exec rake book:tag
4641
- name: Bump version and push tag
4742
id: tag_version
4843
uses: mathieudutour/[email protected]
4944
with:
5045
github_token: ${{ secrets.GITHUB_TOKEN }}
46+
# Runs a set of commands using the runners shell
47+
- name: build book
48+
env:
49+
GITHUB_VERSION: ${{ steps.tag_version.outputs.new_tag }}
50+
run: |
51+
bundle exec rake book:build_action
5152
- name: Create a GitHub release
5253
id: create_release
5354
uses: actions/create-release@v1

0 commit comments

Comments
 (0)