Skip to content

Commit

Permalink
Update ci.yml: gemspec.online deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
volkerdoerr authored Oct 19, 2023
1 parent 4de4ad2 commit cc5546f
Showing 1 changed file with 15 additions and 60 deletions.
75 changes: 15 additions & 60 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,79 +13,34 @@ env:
GH_TOKEN: ${{ github.token }}

jobs:

# ----------------------------------------------------------------------

convert-test-files:
convert-and-upload:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout repository
- uses: actions/checkout@v3
- name: Convert polarion files
- run: gh release download wip --pattern 'gpc'
- run: chmod +x gpc
- run: ./gpc ./input/filelist.txt ./output
- run: rm gpc
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: generated by gpc
commit_user_name: volkerdoerr
commit_user_email: noreply@cascade.de
commit_author: Volker Doerr <vd@cascade.de>
commit_options: '--signoff'

# ----------------------------------------------------------------------

update-tag:
runs-on: ubuntu-latest
needs: convert-test-files
permissions: write-all
steps:
- uses: actions/checkout@v3
- uses: rickstaa/action-create-tag@v1
- name: Deploy to gemspec.online
uses: wlixcc/SFTP-Deploy-Action@v1.2.4
with:
tag: "wip"
message: "rolling: work in progress"
force_push_tag: true
server: ${{ secrets.GEMSPEC_ONLINE_SFTP_SERVER }}
port: ${{ secrets.GEMSPEC_ONLINE_SFTP_PORT }}
username: ${{ secrets.GEMSPEC_ONLINE_SFTP_USERNAME }}
password: ${{ secrets.GEMSPEC_ONLINE_SFTP_PASSWORD }}
local_path: './output/*'
remote_path: '/'
sftp_only: true
delete_remote_files: true


# ----------------------------------------------------------------------

build-website:
runs-on: ubuntu-latest
needs: update-tag
permissions:
contents: read
pages: write
id-token: write
steps:
- uses: actions/checkout@v3
- run: gh release download wip --pattern 'gpc'
- run: chmod +x gpc
- run: ./gpc https://gemspec.dev.ccs.gematik.solutions/docs/filelist.txt ./pages
- uses: actions/checkout@v3
- uses: actions/configure-pages@v2
- uses: actions/jekyll-build-pages@v1
with:
source: pages
destination: ./_site
- uses: actions/upload-pages-artifact@v1

# ----------------------------------------------------------------------

deploy-website:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build-website
permissions:
contents: read
pages: write
id-token: write
steps:
- id: deployment
uses: actions/deploy-pages@v1






Expand Down

0 comments on commit cc5546f

Please sign in to comment.