Skip to content

Commit

Permalink
cicd fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielefantiniblindata committed Jul 23, 2024
1 parent 3136410 commit 1c28f2d
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
needs: verify-version
permissions:
contents: read
packages: read
packages: write
steps:
- name: Get Git Tag
run: echo "TAG_VERSION=$( echo ${{github.ref_name}} | sed 's/[^0-9.]//g' )" >> $GITHUB_ENV
Expand Down Expand Up @@ -161,20 +161,13 @@ jobs:
runs-on: ubuntu-latest
needs: verify-version
permissions:
contents: read
contents: write
packages: read
steps:
- name: Get Git Tag
run: echo "TAG_VERSION=$( echo ${{github.ref_name}} | sed 's/[^0-9.]//g' )" >> $GITHUB_ENV
- name: Check out repository code
uses: actions/checkout@v4
with:
ssh-key: ${{secrets.SSH_KEY}}
- name: Install SSH key # Install SSH key to connect to github repos
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
known_hosts: ${{ secrets.KNOWN_HOSTS }}
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
Expand All @@ -185,7 +178,13 @@ jobs:
uses: actions/setup-node@v4
- name: Install Redocly CLI
run: npm install -g @redocly/cli@latest
- name: Set Git user
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
- name: Publish API doc
run: |
./generate-full-redoc-static-html.sh
./upload-redoc-static-html-to-github.sh ${{ env.TAG_VERSION }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 1c28f2d

Please sign in to comment.