Skip to content

Commit

Permalink
Add version replacment to actions
Browse files Browse the repository at this point in the history
  • Loading branch information
leepeuker committed Sep 7, 2023
1 parent 29dc544 commit a5d2d84
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/deploy-openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- uses: actions/checkout@v3
- name: copy files
uses: appleboy/scp-action@v0.1.4
Expand All @@ -27,3 +30,12 @@ jobs:
source: "docs/openapi.json"
target: ${{ secrets.API_DEPLOYMENT_DIRECTORY }}
strip_components: 1
- uses: actions/checkout@v3
- name: update openapi application version
uses: appleboy/ssh-action@v0.1.10
with:
host: ${{ secrets.DOCS_SSH_HOST }}
username: ${{ secrets.DOCS_SSH_USER }}
key: ${{ secrets.DOCS_SSH_KEY }}
script: >
sed -i 's/"version": ""/"version": "1"/g' ${{ secrets.API_DEPLOYMENT_DIRECTORY }}/openapi.json

0 comments on commit a5d2d84

Please sign in to comment.