From d25c019563f841efc6e66db9da136a652e166119 Mon Sep 17 00:00:00 2001 From: pauchena Date: Fri, 19 Apr 2024 10:53:38 -0300 Subject: [PATCH 1/3] Add gh pages workflow --- .github/workflows/gh-deployment.yml | 39 +++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/gh-deployment.yml diff --git a/.github/workflows/gh-deployment.yml b/.github/workflows/gh-deployment.yml new file mode 100644 index 0000000..21b2f55 --- /dev/null +++ b/.github/workflows/gh-deployment.yml @@ -0,0 +1,39 @@ +name: Deployment to GitHub Pages + +permissions: + contents: write + +on: + # call this workflow when the workflow Main Validation is completed after a push to main + workflow_run: + workflows: + - 'Continuous Integration' + branches: + - main + types: + - completed + +jobs: + deploy: + if: ${{ github.event.workflow_run.conclusion == 'success' }} + runs-on: ubuntu-latest + steps: + - name: Begin CI... + uses: actions/checkout@v3 + + - name: Set up Node + uses: actions/setup-node@v3 + with: + node-version-file: .node-version + + - name: Install dependencies + run: npm install + + - name: Build page + run: npm run build + + - name: Deploy to gh-pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./dist From 3b60eefe62eadff9c353c6150b972a4f0320e4ff Mon Sep 17 00:00:00 2001 From: pauchena Date: Fri, 19 Apr 2024 12:46:57 -0300 Subject: [PATCH 2/3] test workflow --- .github/workflows/gh-deployment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gh-deployment.yml b/.github/workflows/gh-deployment.yml index 21b2f55..83c273d 100644 --- a/.github/workflows/gh-deployment.yml +++ b/.github/workflows/gh-deployment.yml @@ -9,7 +9,7 @@ on: workflows: - 'Continuous Integration' branches: - - main + - CU-86dtad91f types: - completed From 5d9826d6b2bc6c32e5e6057137c4e58868395ce1 Mon Sep 17 00:00:00 2001 From: pauchena Date: Fri, 19 Apr 2024 15:20:01 -0300 Subject: [PATCH 3/3] wip --- .github/workflows/gh-deployment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gh-deployment.yml b/.github/workflows/gh-deployment.yml index 83c273d..21b2f55 100644 --- a/.github/workflows/gh-deployment.yml +++ b/.github/workflows/gh-deployment.yml @@ -9,7 +9,7 @@ on: workflows: - 'Continuous Integration' branches: - - CU-86dtad91f + - main types: - completed