From 5e43784f0659271cae18fc42034f3dd7e6ee0a4a Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Sun, 31 Mar 2024 13:37:27 +0300 Subject: [PATCH] fix: change to github provided deploy action --- .github/workflows/deploy.yml | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a7b5fe8..7e86004 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,17 +5,24 @@ on: branches: - main jobs: - build_deploy_vue: + # Deploy job + deploy: + # Add a dependency to the build job + needs: build + + # Grant GITHUB_TOKEN the permissions required to make a Pages deployment + permissions: + pages: write # to deploy to Pages + id-token: write # to verify the deployment originates from an appropriate source + + # Deploy to the github-pages environment + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + # Specify runner + deployment step runs-on: ubuntu-latest - name: Build and Deploy Vue steps: - - uses: actions/checkout@v4 - - id: Build-Deploy-Vue - uses: Daniele-Tentoni/VuePagesAction@v1.0.8 - with: - username: 'ivuorinen' - reponame: 'sysvinit-service-generator' - token: ${{ secrets.GITHUB_TOKEN }} # no need to change this line this is used to create the branch in your application repository - gitemail: 'ivuorinen@users.noreply.github.com' - gitname: 'ivuorinen' - gitmsg: 'Deploy Vue App 🚀' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4