guide: update CI job names

This commit is contained in:
David Hewitt 2021-05-06 23:14:52 +01:00
parent 272d014518
commit 926b2a7325
1 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
name: gh-pages
name: guide
on:
push:
@ -12,7 +12,7 @@ env:
CARGO_TERM_COLOR: always
jobs:
deploy:
build:
runs-on: ubuntu-latest
outputs:
tag_name: ${{ steps.prepare_tag.outputs.tag_name }}
@ -58,13 +58,13 @@ jobs:
full_commit_message: 'Upload documentation for ${{ steps.prepare_tag.outputs.tag_name }}'
release:
needs: deploy
needs: build
runs-on: ubuntu-latest
if: ${{ github.event_name == 'release' }}
steps:
- name: Create latest tag redirect
env:
TAG_NAME: ${{ needs.deploy.outputs.tag_name }}
TAG_NAME: ${{ needs.build.outputs.tag_name }}
run: |
mkdir public
echo "<meta http-equiv=refresh content=0;url='$TAG_NAME/'>" > public/index.html
@ -74,5 +74,5 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public/
full_commit_message: 'Release ${{ needs.deploy.outputs.tag_name }}'
full_commit_message: 'Release ${{ needs.build.outputs.tag_name }}'
keep_files: true