From cc5546f4fd702f73715fe2bb9cc6c9fcfdbcfbe6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Volker=20D=C3=B6rr?= <68968598+volkerdoerr@users.noreply.github.com> Date: Thu, 19 Oct 2023 14:49:52 +0200 Subject: [PATCH] Update ci.yml: gemspec.online deployment --- .github/workflows/ci.yml | 75 ++++++++-------------------------------- 1 file changed, 15 insertions(+), 60 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 37fb8b2..21d6807 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 - 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 - + +