Skip to content

Commit

Permalink
Merge pull request #21 from LeoVie/order-after-release-jobs
Browse files Browse the repository at this point in the history
Order after-release jobs
  • Loading branch information
LeoVie authored Sep 14, 2022
2 parents 85c60c8 + 0199eed commit e241bc9
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,21 @@ on:
workflow_dispatch: ~

jobs:
Build_and_push:
Update_VERSION_file:
runs-on: ubuntu-latest
steps:
- name: Update VERSION file
run: echo ${{ steps.get_tag.outputs.TAG }} > VERSION

- uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: main
commit_message: Update VERSION file
file_pattern: VERSION

Build_and_push_Docker_image:
runs-on: ubuntu-latest
needs: Update_VERSION_file
steps:
- name: Get tag
id: get_tag
Expand All @@ -19,10 +32,11 @@ jobs:
uses: actions/checkout@v3
with:
token: ${{ secrets.PAT_FOR_XDRY_VERSION_UPDATING }}
- name: Update VERSION file
run: echo ${{ steps.get_tag.outputs.TAG }} > VERSION
- uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: main
commit_message: Update VERSION file
file_pattern: VERSION

Deploy_website:
runs-on: ubuntu-latest
needs: Update_VERSION_file
steps:
- name: Deploy website
run: |
curl -XPOST -u "${{ secrets.DEPLOY_PAT_USERNAME}}:${{secrets.DEPLOY_PAT}}" -H "Accept:application/vnd.github.everest-preview+json" -H "Content-Type:application/json" https://api.github.com/repos/leovie/xdry-website/dispatches --data '{"event_type": "deploy_website" }'
12 changes: 0 additions & 12 deletions .github/workflows/deploy-website-after-release.yml

This file was deleted.

0 comments on commit e241bc9

Please sign in to comment.