Merge pull request #1599 from PyO3/davidhewitt-patch-1-1
guide: update CI job names
This commit is contained in:
commit
eb251a2f22
|
@ -1,4 +1,4 @@
|
||||||
name: gh-pages
|
name: guide
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
@ -12,7 +12,7 @@ env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
tag_name: ${{ steps.prepare_tag.outputs.tag_name }}
|
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 }}'
|
full_commit_message: 'Upload documentation for ${{ steps.prepare_tag.outputs.tag_name }}'
|
||||||
|
|
||||||
release:
|
release:
|
||||||
needs: deploy
|
needs: build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: ${{ github.event_name == 'release' }}
|
if: ${{ github.event_name == 'release' }}
|
||||||
steps:
|
steps:
|
||||||
- name: Create latest tag redirect
|
- name: Create latest tag redirect
|
||||||
env:
|
env:
|
||||||
TAG_NAME: ${{ needs.deploy.outputs.tag_name }}
|
TAG_NAME: ${{ needs.build.outputs.tag_name }}
|
||||||
run: |
|
run: |
|
||||||
mkdir public
|
mkdir public
|
||||||
echo "<meta http-equiv=refresh content=0;url='$TAG_NAME/'>" > public/index.html
|
echo "<meta http-equiv=refresh content=0;url='$TAG_NAME/'>" > public/index.html
|
||||||
|
@ -74,5 +74,5 @@ jobs:
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
publish_dir: ./public/
|
publish_dir: ./public/
|
||||||
full_commit_message: 'Release ${{ needs.deploy.outputs.tag_name }}'
|
full_commit_message: 'Release ${{ needs.build.outputs.tag_name }}'
|
||||||
keep_files: true
|
keep_files: true
|
||||||
|
|
Loading…
Reference in New Issue