From d7f12eb1f3c1f068b8c4cb3e48621ce25a292c4e Mon Sep 17 00:00:00 2001 From: yuru-baku <35851389+yuru-baku@users.noreply.github.com> Date: Wed, 28 Feb 2024 12:54:50 +0100 Subject: [PATCH 01/37] add actions to deploy vue on push --- .github/workflows/deploy-vue.yml | 52 +++++++++++++++++++++++++ .github/workflows/deploy-vue_config.yml | 14 +++++++ frontend-vue/vite.config.ts | 1 + 3 files changed, 67 insertions(+) create mode 100644 .github/workflows/deploy-vue.yml create mode 100644 .github/workflows/deploy-vue_config.yml diff --git a/.github/workflows/deploy-vue.yml b/.github/workflows/deploy-vue.yml new file mode 100644 index 0000000..b8628bd --- /dev/null +++ b/.github/workflows/deploy-vue.yml @@ -0,0 +1,52 @@ +name: 'Vue to Github Pages' +branding: + icon: 'activity' + color: 'blue' +description: 'This Action will Build your Vue Project and deploy it to Github Pages' +inputs: + username: + description: 'Your username' + required: true + reponame: + description: 'Your reponame' + required: true + token: + description: 'Your Github token' + required: true + gitemail: + description: 'Your git commit email' + required: false + default: 'CI@example.com' + gitname: + description: 'Your git commit name' + required: false + default: 'CI' + gitmsg: + description: 'Your git commit message' + required: false + default: 'deploy' + cname: + description: 'Your custom domain' + required: false + default: 'none' + useyarn: + description: 'Use yarn to build' + required: false + default: false +runs: + using: "composite" + steps: + - name: Build Vue + run: | + if [ true == ${{ inputs.useyarn }} ]; then yarn install --frozen-lockfile; else npm ci; fi + if [ true == ${{ inputs.useyarn }} ]; then yarn build; else npm run build; fi + cd dist + ln -s index.html 404.html + if [ "none" != ${{ inputs.cname }} ]; then echo '${{ inputs.cname }}' > CNAME; fi + git config --global user.email "${{ inputs.gitemail }}" + git config --global user.name "${{ inputs.gitname }}" + git init + git add -A + git commit -m '${{ inputs.gitmsg }}' + git push -f https://${{ inputs.username }}:${{ inputs.token }}@github.com/${{ inputs.username }}/${{ inputs.reponame }}.git master:gh-pages + shell: bash \ No newline at end of file diff --git a/.github/workflows/deploy-vue_config.yml b/.github/workflows/deploy-vue_config.yml new file mode 100644 index 0000000..081d600 --- /dev/null +++ b/.github/workflows/deploy-vue_config.yml @@ -0,0 +1,14 @@ +name: Build Vue +on: [push] +jobs: + build_vue: + runs-on: ubuntu-latest + name: Build Vue + steps: + - uses: actions/checkout@v2 + - id: Build-Vue + uses: deploy-vue.yml + with: + username: 'yuru-baku' + reponame: 'InfintyDeck' + token: ${{ secrets.GITHUB_TOKEN }} # Leave this line unchanged \ No newline at end of file diff --git a/frontend-vue/vite.config.ts b/frontend-vue/vite.config.ts index 5953de8..5c781b4 100644 --- a/frontend-vue/vite.config.ts +++ b/frontend-vue/vite.config.ts @@ -5,6 +5,7 @@ import vue from '@vitejs/plugin-vue' // https://vitejs.dev/config/ export default defineConfig({ + base: '/InfintyDeck' plugins: [ vue({ template: { From a9068fefcb3ca9ba684d0482abdfa37d291e62a8 Mon Sep 17 00:00:00 2001 From: yuru-baku <35851389+yuru-baku@users.noreply.github.com> Date: Wed, 28 Feb 2024 12:56:34 +0100 Subject: [PATCH 02/37] remove old --- .github/workflows/test-and-deploy.yml | 67 --------------------------- 1 file changed, 67 deletions(-) delete mode 100644 .github/workflows/test-and-deploy.yml diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml deleted file mode 100644 index 5af5dc9..0000000 --- a/.github/workflows/test-and-deploy.yml +++ /dev/null @@ -1,67 +0,0 @@ -name: Test and deploy - -on: - push: - -jobs: - Test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: 16 - cache: 'yarn' - - run: yarn install --frozen-lockfile # optional, --immutable - - name: Run tests - run: yarn test - Deploy: - needs: Test - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: 18 - cache: 'yarn' - - run: yarn install --frozen-lockfile # optional, --immutable - - name: Compiled source code - run: yarn build - - name: Zip compiled source code - run: | - zip -r dist.zip dist/ - - name: Get latest release - uses: actions/github-script@v6 - id: get_latest_release - with: - script: | - const { data: releases } = await github.rest.repos.listReleases({ - owner: context.repo.owner, - repo: context.repo.repo, - per_page: 1 - }); - return releases[0].tag_name; - result-encoding: string - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Create release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ steps.get_latest_release.outputs.result }}-${{ github.sha }} - release_name: Release ${{ steps.get_latest_release.outputs.result }}-${{ github.sha }} - draft: false - prerelease: false - - name: Upload release asset - id: upload-release-asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: dist.zip - asset_name: 2023-tutorial-build-test-deploy.zip - asset_content_type: application/zip From 7ae49602b061940623808b93724860410bda8cfe Mon Sep 17 00:00:00 2001 From: yuru-baku <35851389+yuru-baku@users.noreply.github.com> Date: Wed, 28 Feb 2024 12:59:18 +0100 Subject: [PATCH 03/37] update action --- .github/workflows/deploy-vue.yml | 52 ------------------------- .github/workflows/deploy-vue_config.yml | 2 +- 2 files changed, 1 insertion(+), 53 deletions(-) delete mode 100644 .github/workflows/deploy-vue.yml diff --git a/.github/workflows/deploy-vue.yml b/.github/workflows/deploy-vue.yml deleted file mode 100644 index b8628bd..0000000 --- a/.github/workflows/deploy-vue.yml +++ /dev/null @@ -1,52 +0,0 @@ -name: 'Vue to Github Pages' -branding: - icon: 'activity' - color: 'blue' -description: 'This Action will Build your Vue Project and deploy it to Github Pages' -inputs: - username: - description: 'Your username' - required: true - reponame: - description: 'Your reponame' - required: true - token: - description: 'Your Github token' - required: true - gitemail: - description: 'Your git commit email' - required: false - default: 'CI@example.com' - gitname: - description: 'Your git commit name' - required: false - default: 'CI' - gitmsg: - description: 'Your git commit message' - required: false - default: 'deploy' - cname: - description: 'Your custom domain' - required: false - default: 'none' - useyarn: - description: 'Use yarn to build' - required: false - default: false -runs: - using: "composite" - steps: - - name: Build Vue - run: | - if [ true == ${{ inputs.useyarn }} ]; then yarn install --frozen-lockfile; else npm ci; fi - if [ true == ${{ inputs.useyarn }} ]; then yarn build; else npm run build; fi - cd dist - ln -s index.html 404.html - if [ "none" != ${{ inputs.cname }} ]; then echo '${{ inputs.cname }}' > CNAME; fi - git config --global user.email "${{ inputs.gitemail }}" - git config --global user.name "${{ inputs.gitname }}" - git init - git add -A - git commit -m '${{ inputs.gitmsg }}' - git push -f https://${{ inputs.username }}:${{ inputs.token }}@github.com/${{ inputs.username }}/${{ inputs.reponame }}.git master:gh-pages - shell: bash \ No newline at end of file diff --git a/.github/workflows/deploy-vue_config.yml b/.github/workflows/deploy-vue_config.yml index 081d600..066687a 100644 --- a/.github/workflows/deploy-vue_config.yml +++ b/.github/workflows/deploy-vue_config.yml @@ -7,7 +7,7 @@ jobs: steps: - uses: actions/checkout@v2 - id: Build-Vue - uses: deploy-vue.yml + uses: xRealNeon/VuePagesAction@1.0.1 with: username: 'yuru-baku' reponame: 'InfintyDeck' From 4002a65d728b9ba85064d761c480831e80a0b7e2 Mon Sep 17 00:00:00 2001 From: yuru-baku <35851389+yuru-baku@users.noreply.github.com> Date: Wed, 28 Feb 2024 13:06:29 +0100 Subject: [PATCH 04/37] update action --- .github/workflows/deploy-vue.yml | 30 +++++++++++++++++++++++++ .github/workflows/deploy-vue_config.yml | 5 +++-- 2 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/deploy-vue.yml diff --git a/.github/workflows/deploy-vue.yml b/.github/workflows/deploy-vue.yml new file mode 100644 index 0000000..7a76ec8 --- /dev/null +++ b/.github/workflows/deploy-vue.yml @@ -0,0 +1,30 @@ +name: 'Vue to Github Pages' +branding: + icon: 'activity' + color: 'blue' +description: 'This Action will Build your Vue Project and deploy it to Github Pages' +inputs: + username: + description: 'Your username' + required: true + reponame: + description: 'Your reponame' + required: true + token: + description: 'Your Github token' + required: true +runs: + using: "composite" + steps: + - name: Build Vue + run: | + cd frontend-vue/dist + ln -s index.html 404.html + if [ "none" != ${{ inputs.cname }} ]; then echo '${{ inputs.cname }}' > CNAME; fi + git config --global user.email "${{ inputs.gitemail }}" + git config --global user.name "${{ inputs.gitname }}" + git init + git add -A + git commit -m '${{ inputs.gitmsg }}' + git push -f https://${{ inputs.username }}:${{ inputs.token }}@github.com/${{ inputs.username }}/${{ inputs.reponame }}.git master:gh-pages + shell: bash \ No newline at end of file diff --git a/.github/workflows/deploy-vue_config.yml b/.github/workflows/deploy-vue_config.yml index 066687a..14f0049 100644 --- a/.github/workflows/deploy-vue_config.yml +++ b/.github/workflows/deploy-vue_config.yml @@ -5,10 +5,11 @@ jobs: runs-on: ubuntu-latest name: Build Vue steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4.1.1 - id: Build-Vue uses: xRealNeon/VuePagesAction@1.0.1 with: username: 'yuru-baku' reponame: 'InfintyDeck' - token: ${{ secrets.GITHUB_TOKEN }} # Leave this line unchanged \ No newline at end of file + token: ${{ secrets.GITHUB_TOKEN }} # Leave this line unchanged + run: \ No newline at end of file From 6448195ec2cec247243c9c8d6b4f849094045d49 Mon Sep 17 00:00:00 2001 From: Yuru Baku <35851389+yuru-baku@users.noreply.github.com> Date: Wed, 28 Feb 2024 12:07:18 +0000 Subject: [PATCH 05/37] Update deploy-vue_config.yml --- .github/workflows/deploy-vue_config.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/deploy-vue_config.yml b/.github/workflows/deploy-vue_config.yml index 14f0049..691feb9 100644 --- a/.github/workflows/deploy-vue_config.yml +++ b/.github/workflows/deploy-vue_config.yml @@ -12,4 +12,3 @@ jobs: username: 'yuru-baku' reponame: 'InfintyDeck' token: ${{ secrets.GITHUB_TOKEN }} # Leave this line unchanged - run: \ No newline at end of file From 864ec1c2dc0b9002b97f57572938b4f36b6a5754 Mon Sep 17 00:00:00 2001 From: yuru-baku <35851389+yuru-baku@users.noreply.github.com> Date: Wed, 28 Feb 2024 13:09:58 +0100 Subject: [PATCH 06/37] update action --- .github/workflows/deploy-vue_config.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-vue_config.yml b/.github/workflows/deploy-vue_config.yml index 691feb9..07f947a 100644 --- a/.github/workflows/deploy-vue_config.yml +++ b/.github/workflows/deploy-vue_config.yml @@ -7,8 +7,17 @@ jobs: steps: - uses: actions/checkout@v4.1.1 - id: Build-Vue - uses: xRealNeon/VuePagesAction@1.0.1 with: username: 'yuru-baku' reponame: 'InfintyDeck' token: ${{ secrets.GITHUB_TOKEN }} # Leave this line unchanged + run: | + cd frontend-vue + npm run build + cd dist + ln -s index.html 404.html + git init + git add -A + git commit -m '${{ inputs.gitmsg }}' + git push -f https://${{ inputs.username }}:${{ inputs.token }}@github.com/${{ inputs.username }}/${{ inputs.reponame }}.git master:gh-pages + shell: bash \ No newline at end of file From d7d8400558a7fade2a0a2a70a29dc484fb7dad9a Mon Sep 17 00:00:00 2001 From: Yuru Baku <35851389+yuru-baku@users.noreply.github.com> Date: Wed, 28 Feb 2024 12:22:38 +0000 Subject: [PATCH 07/37] Update deploy-vue_config.yml --- .github/workflows/deploy-vue_config.yml | 26 ++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/deploy-vue_config.yml b/.github/workflows/deploy-vue_config.yml index 07f947a..45ddc52 100644 --- a/.github/workflows/deploy-vue_config.yml +++ b/.github/workflows/deploy-vue_config.yml @@ -1,23 +1,23 @@ name: Build Vue -on: [push] +on: + [push] jobs: - build_vue: + deploy-vue: runs-on: ubuntu-latest - name: Build Vue + name: deploy vue to pages steps: - uses: actions/checkout@v4.1.1 - - id: Build-Vue with: username: 'yuru-baku' reponame: 'InfintyDeck' token: ${{ secrets.GITHUB_TOKEN }} # Leave this line unchanged run: | - cd frontend-vue - npm run build - cd dist - ln -s index.html 404.html - git init - git add -A - git commit -m '${{ inputs.gitmsg }}' - git push -f https://${{ inputs.username }}:${{ inputs.token }}@github.com/${{ inputs.username }}/${{ inputs.reponame }}.git master:gh-pages - shell: bash \ No newline at end of file + cd frontend-vue + npm install + npm run build + cd dist + ls -s index.html 404.html + git init + git add -A + git commit -m '${{ inputs.gitmsg }}' + git push -f https://${{ inputs.username }}:${{ inputs.token }}@github.com/${{ inputs.username }}/${{ inputs.reponame }}.git master:gh-pages From a8d0e4614801a4842cab68bf964046a1a296774f Mon Sep 17 00:00:00 2001 From: Yuru Baku <35851389+yuru-baku@users.noreply.github.com> Date: Wed, 28 Feb 2024 12:25:37 +0000 Subject: [PATCH 08/37] Update deploy-vue_config.yml --- .github/workflows/deploy-vue_config.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/deploy-vue_config.yml b/.github/workflows/deploy-vue_config.yml index 45ddc52..1ce9974 100644 --- a/.github/workflows/deploy-vue_config.yml +++ b/.github/workflows/deploy-vue_config.yml @@ -1,6 +1,5 @@ name: Build Vue -on: - [push] +on: [push] jobs: deploy-vue: runs-on: ubuntu-latest From 406a5ef02d16e17e7fd558db7132efb3194387f7 Mon Sep 17 00:00:00 2001 From: Yuru Baku <35851389+yuru-baku@users.noreply.github.com> Date: Wed, 28 Feb 2024 12:27:22 +0000 Subject: [PATCH 09/37] Update deploy-vue_config.yml --- .github/workflows/deploy-vue_config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy-vue_config.yml b/.github/workflows/deploy-vue_config.yml index 1ce9974..d1129a5 100644 --- a/.github/workflows/deploy-vue_config.yml +++ b/.github/workflows/deploy-vue_config.yml @@ -10,6 +10,7 @@ jobs: username: 'yuru-baku' reponame: 'InfintyDeck' token: ${{ secrets.GITHUB_TOKEN }} # Leave this line unchanged + - name: npm install, build and deploy run: | cd frontend-vue npm install From f962541a511d2b3cf7088d50daa2f896fc94104f Mon Sep 17 00:00:00 2001 From: yuru-baku <35851389+yuru-baku@users.noreply.github.com> Date: Wed, 28 Feb 2024 13:31:55 +0100 Subject: [PATCH 10/37] update vite config --- frontend-vue/package-lock.json | 2 +- frontend-vue/src/views/LobbyCreaterView.vue | 12 +++++++++--- frontend-vue/vite.config.ts | 2 +- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/frontend-vue/package-lock.json b/frontend-vue/package-lock.json index 4ca6b49..d2eba33 100644 --- a/frontend-vue/package-lock.json +++ b/frontend-vue/package-lock.json @@ -35,7 +35,7 @@ "sass": "^1.69.6", "sass-loader": "^13.3.3", "typescript": "~5.3.0", - "vite": "^5.0.10", + "vite": ">=5.0.12", "vue-tsc": "^1.8.25" } }, diff --git a/frontend-vue/src/views/LobbyCreaterView.vue b/frontend-vue/src/views/LobbyCreaterView.vue index 913723e..6090230 100644 --- a/frontend-vue/src/views/LobbyCreaterView.vue +++ b/frontend-vue/src/views/LobbyCreaterView.vue @@ -22,15 +22,21 @@ function copyToClipboard() { :key="user.id" :class="{ online: !user.disconnected, offline: user.disconnected }" > - - + + {{ user.name }}
- + empty
diff --git a/frontend-vue/vite.config.ts b/frontend-vue/vite.config.ts index 5c781b4..eec6698 100644 --- a/frontend-vue/vite.config.ts +++ b/frontend-vue/vite.config.ts @@ -5,7 +5,7 @@ import vue from '@vitejs/plugin-vue' // https://vitejs.dev/config/ export default defineConfig({ - base: '/InfintyDeck' + base: '/InfintyDeck', plugins: [ vue({ template: { From 791e45cfaeb128fee8cd749858c9cd5bc292224f Mon Sep 17 00:00:00 2001 From: yuru-baku <35851389+yuru-baku@users.noreply.github.com> Date: Wed, 28 Feb 2024 13:34:16 +0100 Subject: [PATCH 11/37] ignore 404.html --- .github/workflows/deploy-vue_config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-vue_config.yml b/.github/workflows/deploy-vue_config.yml index d1129a5..9d3ddba 100644 --- a/.github/workflows/deploy-vue_config.yml +++ b/.github/workflows/deploy-vue_config.yml @@ -16,7 +16,7 @@ jobs: npm install npm run build cd dist - ls -s index.html 404.html + ls -s index.html git init git add -A git commit -m '${{ inputs.gitmsg }}' From f6f187882a55206dec069829b28e83cb8188fee9 Mon Sep 17 00:00:00 2001 From: yuru-baku <35851389+yuru-baku@users.noreply.github.com> Date: Wed, 28 Feb 2024 13:39:46 +0100 Subject: [PATCH 12/37] update action --- .github/workflows/deploy-vue_config.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-vue_config.yml b/.github/workflows/deploy-vue_config.yml index 9d3ddba..4941e36 100644 --- a/.github/workflows/deploy-vue_config.yml +++ b/.github/workflows/deploy-vue_config.yml @@ -10,14 +10,21 @@ jobs: username: 'yuru-baku' reponame: 'InfintyDeck' token: ${{ secrets.GITHUB_TOKEN }} # Leave this line unchanged + gitemail: 'ci@example.com' + gitname: 'CI' + gitmsg: 'deploy' + cname: 'none' - name: npm install, build and deploy run: | cd frontend-vue npm install npm run build cd dist - ls -s index.html + ln -s index.html 404.html + if [ "none" != ${{ cname }} ]; then echo '${{ cname }}' > CNAME; fi + git config --global user.email "${{ gitemail }}" + git config --global user.name "${{ gitname }}" git init git add -A - git commit -m '${{ inputs.gitmsg }}' - git push -f https://${{ inputs.username }}:${{ inputs.token }}@github.com/${{ inputs.username }}/${{ inputs.reponame }}.git master:gh-pages + git commit -m '${{ gitmsg }}' + git push -f https://${{ username }}:${{ token }}@github.com/${{ username }}/${{ reponame }}.git master:gh-pages From 89ce74c7770193f000fda237a938a0694db25b3c Mon Sep 17 00:00:00 2001 From: yuru-baku <35851389+yuru-baku@users.noreply.github.com> Date: Wed, 28 Feb 2024 13:40:14 +0100 Subject: [PATCH 13/37] update action --- .github/workflows/deploy-vue_config.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-vue_config.yml b/.github/workflows/deploy-vue_config.yml index 4941e36..67a7d4a 100644 --- a/.github/workflows/deploy-vue_config.yml +++ b/.github/workflows/deploy-vue_config.yml @@ -21,10 +21,10 @@ jobs: npm run build cd dist ln -s index.html 404.html - if [ "none" != ${{ cname }} ]; then echo '${{ cname }}' > CNAME; fi + if [ "none" != ${{ inputs.cname }} ]; then echo '${{ inputs.cname }}' > CNAME; fi git config --global user.email "${{ gitemail }}" git config --global user.name "${{ gitname }}" git init git add -A - git commit -m '${{ gitmsg }}' - git push -f https://${{ username }}:${{ token }}@github.com/${{ username }}/${{ reponame }}.git master:gh-pages + git commit -m '${{ inputs.gitmsg }}' + git push -f https://${{ inputs.username }}:${{ inputs.token }}@github.com/${{ inputs.username }}/${{ inputs.reponame }}.git master:gh-pages From 552fefcc8717540ea24d10313c99d3d827355056 Mon Sep 17 00:00:00 2001 From: yuru-baku <35851389+yuru-baku@users.noreply.github.com> Date: Wed, 28 Feb 2024 13:40:41 +0100 Subject: [PATCH 14/37] update action --- .github/workflows/deploy-vue_config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-vue_config.yml b/.github/workflows/deploy-vue_config.yml index 67a7d4a..6603dd3 100644 --- a/.github/workflows/deploy-vue_config.yml +++ b/.github/workflows/deploy-vue_config.yml @@ -22,8 +22,8 @@ jobs: cd dist ln -s index.html 404.html if [ "none" != ${{ inputs.cname }} ]; then echo '${{ inputs.cname }}' > CNAME; fi - git config --global user.email "${{ gitemail }}" - git config --global user.name "${{ gitname }}" + git config --global user.email "${{ inputs.gitemail }}" + git config --global user.name "${{ inputs.gitname }}" git init git add -A git commit -m '${{ inputs.gitmsg }}' From ae2c67a6a016f06e462d573b0ab6c9e112ff6665 Mon Sep 17 00:00:00 2001 From: yuru-baku <35851389+yuru-baku@users.noreply.github.com> Date: Wed, 28 Feb 2024 13:43:41 +0100 Subject: [PATCH 15/37] update action --- .github/workflows/deploy-vue_config.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy-vue_config.yml b/.github/workflows/deploy-vue_config.yml index 6603dd3..ac067b6 100644 --- a/.github/workflows/deploy-vue_config.yml +++ b/.github/workflows/deploy-vue_config.yml @@ -21,10 +21,9 @@ jobs: npm run build cd dist ln -s index.html 404.html - if [ "none" != ${{ inputs.cname }} ]; then echo '${{ inputs.cname }}' > CNAME; fi - git config --global user.email "${{ inputs.gitemail }}" - git config --global user.name "${{ inputs.gitname }}" + git config --global user.email "ci@example" + git config --global user.name "ci" git init git add -A - git commit -m '${{ inputs.gitmsg }}' - git push -f https://${{ inputs.username }}:${{ inputs.token }}@github.com/${{ inputs.username }}/${{ inputs.reponame }}.git master:gh-pages + git commit -m 'deploy' + git push -f https://yuru-baku:${{ inputs.token }}@github.com/yuru-baku/InfintyDeck.git master:gh-pages From b5583ca9dd6962a70952f23bb04b01b1ca2ea1c8 Mon Sep 17 00:00:00 2001 From: yuru-baku <35851389+yuru-baku@users.noreply.github.com> Date: Wed, 28 Feb 2024 13:47:06 +0100 Subject: [PATCH 16/37] update action --- .github/workflows/deploy-vue_config.yml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/.github/workflows/deploy-vue_config.yml b/.github/workflows/deploy-vue_config.yml index ac067b6..2e75216 100644 --- a/.github/workflows/deploy-vue_config.yml +++ b/.github/workflows/deploy-vue_config.yml @@ -6,14 +6,6 @@ jobs: name: deploy vue to pages steps: - uses: actions/checkout@v4.1.1 - with: - username: 'yuru-baku' - reponame: 'InfintyDeck' - token: ${{ secrets.GITHUB_TOKEN }} # Leave this line unchanged - gitemail: 'ci@example.com' - gitname: 'CI' - gitmsg: 'deploy' - cname: 'none' - name: npm install, build and deploy run: | cd frontend-vue @@ -26,4 +18,4 @@ jobs: git init git add -A git commit -m 'deploy' - git push -f https://yuru-baku:${{ inputs.token }}@github.com/yuru-baku/InfintyDeck.git master:gh-pages + git push -f https://yuru-baku:${{ secrets.GITHUB_TOKEN }}@github.com/yuru-baku/InfintyDeck.git master:gh-pages From 9c76fde55dce0634a263b0e416238129127d85e5 Mon Sep 17 00:00:00 2001 From: yuru-baku <35851389+yuru-baku@users.noreply.github.com> Date: Wed, 28 Feb 2024 13:53:27 +0100 Subject: [PATCH 17/37] update action --- .github/workflows/deploy-vue_config.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-vue_config.yml b/.github/workflows/deploy-vue_config.yml index 2e75216..8c7a227 100644 --- a/.github/workflows/deploy-vue_config.yml +++ b/.github/workflows/deploy-vue_config.yml @@ -7,6 +7,8 @@ jobs: steps: - uses: actions/checkout@v4.1.1 - name: npm install, build and deploy + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | cd frontend-vue npm install @@ -18,4 +20,4 @@ jobs: git init git add -A git commit -m 'deploy' - git push -f https://yuru-baku:${{ secrets.GITHUB_TOKEN }}@github.com/yuru-baku/InfintyDeck.git master:gh-pages + git push -f https://yuru-baku:@github.com/yuru-baku/InfintyDeck.git master:gh-pages From 68392942f3cfc3dbb87c38066d8da8654d079d2b Mon Sep 17 00:00:00 2001 From: yuru-baku <35851389+yuru-baku@users.noreply.github.com> Date: Wed, 28 Feb 2024 14:04:17 +0100 Subject: [PATCH 18/37] update action --- .github/workflows/deploy-vue_config.yml | 59 ++++++++++++++++--------- 1 file changed, 39 insertions(+), 20 deletions(-) diff --git a/.github/workflows/deploy-vue_config.yml b/.github/workflows/deploy-vue_config.yml index 8c7a227..c70cf0d 100644 --- a/.github/workflows/deploy-vue_config.yml +++ b/.github/workflows/deploy-vue_config.yml @@ -1,23 +1,42 @@ -name: Build Vue -on: [push] +name: Build and Deploy Vue App + +on: + push: + branches: [ main ] # Optional: Filter branches (e.g., only "main") + jobs: - deploy-vue: + build-and-deploy: runs-on: ubuntu-latest - name: deploy vue to pages + steps: - - uses: actions/checkout@v4.1.1 - - name: npm install, build and deploy - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - cd frontend-vue - npm install - npm run build - cd dist - ln -s index.html 404.html - git config --global user.email "ci@example" - git config --global user.name "ci" - git init - git add -A - git commit -m 'deploy' - git push -f https://yuru-baku:@github.com/yuru-baku/InfintyDeck.git master:gh-pages + - uses: actions/checkout@v3 + + - name: Set working directory + working-directory: frontend-vue + + - name: Install dependencies + uses: actions/cache@v3 + with: + path: node_modules + key: ${{ runner.os }}-build-${{ hashFiles('package-lock.json') }} + restore-keys: | + ${{ runner.os }}-build- + + - name: Install dependencies (if cache miss) + run: npm install, if: steps.cache.outputs == '' + + - name: Use Node.js 16 + uses: actions/setup-node@v3 + with: + node-version: 16 + + - name: Build the Vue app + run: npm run build + + - name: Deploy to GitHub Pages (using GH Pages action) + uses: actions/deploy-pages@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + branch: gh-pages + clean: true + build-dir: ./dist # Relative Pfad zum Build-Verzeichnis From 9e4d075a3f4329ba04a87af57fa263e9808653eb Mon Sep 17 00:00:00 2001 From: Yuru Baku <35851389+yuru-baku@users.noreply.github.com> Date: Wed, 28 Feb 2024 13:12:05 +0000 Subject: [PATCH 19/37] Update deploy-vue_config.yml --- .github/workflows/deploy-vue_config.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy-vue_config.yml b/.github/workflows/deploy-vue_config.yml index c70cf0d..f3fac83 100644 --- a/.github/workflows/deploy-vue_config.yml +++ b/.github/workflows/deploy-vue_config.yml @@ -9,21 +9,22 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set working directory working-directory: frontend-vue - - name: Install dependencies - uses: actions/cache@v3 + - name: Cache Dependencies + uses: actions/cache@v4 with: path: node_modules key: ${{ runner.os }}-build-${{ hashFiles('package-lock.json') }} restore-keys: | ${{ runner.os }}-build- - - name: Install dependencies (if cache miss) - run: npm install, if: steps.cache.outputs == '' + - name: Install dependencies (on cache miss) + if: steps.cache-dependencies.outputs.cache-hit == false + run: npm install - name: Use Node.js 16 uses: actions/setup-node@v3 From c352613423a8fab04d8e36e5931f6c9ad4bf111c Mon Sep 17 00:00:00 2001 From: Yuru Baku <35851389+yuru-baku@users.noreply.github.com> Date: Wed, 28 Feb 2024 13:24:38 +0000 Subject: [PATCH 20/37] Update deploy-vue_config.yml --- .github/workflows/deploy-vue_config.yml | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/.github/workflows/deploy-vue_config.yml b/.github/workflows/deploy-vue_config.yml index f3fac83..ae1ad22 100644 --- a/.github/workflows/deploy-vue_config.yml +++ b/.github/workflows/deploy-vue_config.yml @@ -7,31 +7,32 @@ on: jobs: build-and-deploy: runs-on: ubuntu-latest - + env: + working-directory: frontend-vue + steps: - uses: actions/checkout@v4 - - - name: Set working directory - working-directory: frontend-vue - + + - name: Use Node.js 20 + uses: actions/setup-node@v4 + with: + node-version: 20 + - name: Cache Dependencies uses: actions/cache@v4 with: - path: node_modules + path: ${{env.working-directory}}/node_modules key: ${{ runner.os }}-build-${{ hashFiles('package-lock.json') }} restore-keys: | ${{ runner.os }}-build- - name: Install dependencies (on cache miss) + working-directory: ${{env.working-directory}} if: steps.cache-dependencies.outputs.cache-hit == false run: npm install - - name: Use Node.js 16 - uses: actions/setup-node@v3 - with: - node-version: 16 - - name: Build the Vue app + working-directory: ${{env.working-directory}} run: npm run build - name: Deploy to GitHub Pages (using GH Pages action) @@ -40,4 +41,4 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} branch: gh-pages clean: true - build-dir: ./dist # Relative Pfad zum Build-Verzeichnis + build-dir: ${{env.working-directory}}/./dist # Relative Pfad zum Build-Verzeichnis From 57cbbfc12a3bada2805c8191e6d2ea5ddc200c89 Mon Sep 17 00:00:00 2001 From: Yuru Baku <35851389+yuru-baku@users.noreply.github.com> Date: Wed, 28 Feb 2024 13:25:13 +0000 Subject: [PATCH 21/37] Update deploy-vue_config.yml --- .github/workflows/deploy-vue_config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-vue_config.yml b/.github/workflows/deploy-vue_config.yml index ae1ad22..d5e004e 100644 --- a/.github/workflows/deploy-vue_config.yml +++ b/.github/workflows/deploy-vue_config.yml @@ -2,7 +2,7 @@ name: Build and Deploy Vue App on: push: - branches: [ main ] # Optional: Filter branches (e.g., only "main") + branches: [ autodeploy ] # Optional: Filter branches (e.g., only "main") jobs: build-and-deploy: From 74858d6cb44b95538bd2bd98c5dcac578ea521e7 Mon Sep 17 00:00:00 2001 From: Yuru Baku <35851389+yuru-baku@users.noreply.github.com> Date: Wed, 28 Feb 2024 13:26:02 +0000 Subject: [PATCH 22/37] Update deploy-vue_config.yml --- .github/workflows/deploy-vue_config.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/deploy-vue_config.yml b/.github/workflows/deploy-vue_config.yml index d5e004e..f4e7f18 100644 --- a/.github/workflows/deploy-vue_config.yml +++ b/.github/workflows/deploy-vue_config.yml @@ -1,8 +1,6 @@ name: Build and Deploy Vue App -on: - push: - branches: [ autodeploy ] # Optional: Filter branches (e.g., only "main") +on: [push] jobs: build-and-deploy: From 391e27adb8f86821c4aa04e36c871106462341bd Mon Sep 17 00:00:00 2001 From: yuru-baku <35851389+yuru-baku@users.noreply.github.com> Date: Wed, 28 Feb 2024 14:29:50 +0100 Subject: [PATCH 23/37] remove unused action --- .github/workflows/deploy-vue.yml | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 .github/workflows/deploy-vue.yml diff --git a/.github/workflows/deploy-vue.yml b/.github/workflows/deploy-vue.yml deleted file mode 100644 index 7a76ec8..0000000 --- a/.github/workflows/deploy-vue.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: 'Vue to Github Pages' -branding: - icon: 'activity' - color: 'blue' -description: 'This Action will Build your Vue Project and deploy it to Github Pages' -inputs: - username: - description: 'Your username' - required: true - reponame: - description: 'Your reponame' - required: true - token: - description: 'Your Github token' - required: true -runs: - using: "composite" - steps: - - name: Build Vue - run: | - cd frontend-vue/dist - ln -s index.html 404.html - if [ "none" != ${{ inputs.cname }} ]; then echo '${{ inputs.cname }}' > CNAME; fi - git config --global user.email "${{ inputs.gitemail }}" - git config --global user.name "${{ inputs.gitname }}" - git init - git add -A - git commit -m '${{ inputs.gitmsg }}' - git push -f https://${{ inputs.username }}:${{ inputs.token }}@github.com/${{ inputs.username }}/${{ inputs.reponame }}.git master:gh-pages - shell: bash \ No newline at end of file From 53d71c46c8639809b996fb2576409d41764f865d Mon Sep 17 00:00:00 2001 From: Yuru Baku <35851389+yuru-baku@users.noreply.github.com> Date: Wed, 28 Feb 2024 13:34:22 +0000 Subject: [PATCH 24/37] Update deploy-vue_config.yml --- .github/workflows/deploy-vue_config.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/deploy-vue_config.yml b/.github/workflows/deploy-vue_config.yml index f4e7f18..32e8e32 100644 --- a/.github/workflows/deploy-vue_config.yml +++ b/.github/workflows/deploy-vue_config.yml @@ -2,6 +2,10 @@ name: Build and Deploy Vue App on: [push] +permissions: + contents: read + pages: write + jobs: build-and-deploy: runs-on: ubuntu-latest From 5f728f1646395fcde9350242e90a42ea64d2ca55 Mon Sep 17 00:00:00 2001 From: Yuru Baku <35851389+yuru-baku@users.noreply.github.com> Date: Wed, 28 Feb 2024 13:36:30 +0000 Subject: [PATCH 25/37] Update deploy-vue_config.yml --- .github/workflows/deploy-vue_config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy-vue_config.yml b/.github/workflows/deploy-vue_config.yml index 32e8e32..855e786 100644 --- a/.github/workflows/deploy-vue_config.yml +++ b/.github/workflows/deploy-vue_config.yml @@ -5,6 +5,7 @@ on: [push] permissions: contents: read pages: write + id-token: write jobs: build-and-deploy: From 9f9c32f548b3cda104dfdf1d72d187d6ec2836fb Mon Sep 17 00:00:00 2001 From: Yuru Baku <35851389+yuru-baku@users.noreply.github.com> Date: Wed, 28 Feb 2024 13:37:15 +0000 Subject: [PATCH 26/37] Update deploy-vue_config.yml --- .github/workflows/deploy-vue_config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-vue_config.yml b/.github/workflows/deploy-vue_config.yml index 855e786..f1f973d 100644 --- a/.github/workflows/deploy-vue_config.yml +++ b/.github/workflows/deploy-vue_config.yml @@ -5,7 +5,7 @@ on: [push] permissions: contents: read pages: write - id-token: write + id-token: write jobs: build-and-deploy: From e09ba12789b00092a4d6f38181ef4deb53353eae Mon Sep 17 00:00:00 2001 From: Yuru Baku <35851389+yuru-baku@users.noreply.github.com> Date: Wed, 28 Feb 2024 13:48:02 +0000 Subject: [PATCH 27/37] Update deploy-vue_config.yml --- .github/workflows/deploy-vue_config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-vue_config.yml b/.github/workflows/deploy-vue_config.yml index f1f973d..45b0cdc 100644 --- a/.github/workflows/deploy-vue_config.yml +++ b/.github/workflows/deploy-vue_config.yml @@ -44,4 +44,4 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} branch: gh-pages clean: true - build-dir: ${{env.working-directory}}/./dist # Relative Pfad zum Build-Verzeichnis + build-dir: ${{env.working-directory}}/dist # Relative Pfad zum Build-Verzeichnis From b9bf6c26b2e59c1cec2953a0a65ed334c6120525 Mon Sep 17 00:00:00 2001 From: Yuru Baku <35851389+yuru-baku@users.noreply.github.com> Date: Wed, 28 Feb 2024 13:52:14 +0000 Subject: [PATCH 28/37] Update deploy-vue_config.yml --- .github/workflows/deploy-vue_config.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-vue_config.yml b/.github/workflows/deploy-vue_config.yml index 45b0cdc..07760dd 100644 --- a/.github/workflows/deploy-vue_config.yml +++ b/.github/workflows/deploy-vue_config.yml @@ -36,12 +36,15 @@ jobs: - name: Build the Vue app working-directory: ${{env.working-directory}} - run: npm run build + run: npm run build - name: Deploy to GitHub Pages (using GH Pages action) - uses: actions/deploy-pages@v1 + - uses: actions/upload-artifact@v3 + with: + name: github-pages # Replace with your desired name + path: ${{env.working-directory}}/dist # Replace with the path to your build output + - uses: actions/deploy-pages@v1 with: token: ${{ secrets.GITHUB_TOKEN }} branch: gh-pages clean: true - build-dir: ${{env.working-directory}}/dist # Relative Pfad zum Build-Verzeichnis From 1c372e8f4f79dbb3b8cdb7fbbcc8b6e6bc226836 Mon Sep 17 00:00:00 2001 From: Yuru Baku <35851389+yuru-baku@users.noreply.github.com> Date: Wed, 28 Feb 2024 13:54:40 +0000 Subject: [PATCH 29/37] Update deploy-vue_config.yml --- .github/workflows/deploy-vue_config.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-vue_config.yml b/.github/workflows/deploy-vue_config.yml index 07760dd..311dfba 100644 --- a/.github/workflows/deploy-vue_config.yml +++ b/.github/workflows/deploy-vue_config.yml @@ -38,12 +38,14 @@ jobs: working-directory: ${{env.working-directory}} run: npm run build - - name: Deploy to GitHub Pages (using GH Pages action) - - uses: actions/upload-artifact@v3 + - name: Create Artefact + uses: actions/upload-artifact@v3 with: name: github-pages # Replace with your desired name path: ${{env.working-directory}}/dist # Replace with the path to your build output - - uses: actions/deploy-pages@v1 + + - name: Post to GH-Pages + uses: actions/deploy-pages@v1 with: token: ${{ secrets.GITHUB_TOKEN }} branch: gh-pages From 66ab3febd70b4a3364ea9599e6821991010a285e Mon Sep 17 00:00:00 2001 From: Yuru Baku <35851389+yuru-baku@users.noreply.github.com> Date: Wed, 28 Feb 2024 13:57:51 +0000 Subject: [PATCH 30/37] Update deploy-vue_config.yml --- .github/workflows/deploy-vue_config.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/deploy-vue_config.yml b/.github/workflows/deploy-vue_config.yml index 311dfba..0eea28f 100644 --- a/.github/workflows/deploy-vue_config.yml +++ b/.github/workflows/deploy-vue_config.yml @@ -44,9 +44,5 @@ jobs: name: github-pages # Replace with your desired name path: ${{env.working-directory}}/dist # Replace with the path to your build output - - name: Post to GH-Pages + - name: Deploy to GH-Pages uses: actions/deploy-pages@v1 - with: - token: ${{ secrets.GITHUB_TOKEN }} - branch: gh-pages - clean: true From 554ebecc7a317d5c67c7476265d5fb406462d345 Mon Sep 17 00:00:00 2001 From: Yuru Baku <35851389+yuru-baku@users.noreply.github.com> Date: Wed, 28 Feb 2024 14:05:08 +0000 Subject: [PATCH 31/37] Update deploy-vue_config.yml --- .github/workflows/deploy-vue_config.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-vue_config.yml b/.github/workflows/deploy-vue_config.yml index 0eea28f..c96a11f 100644 --- a/.github/workflows/deploy-vue_config.yml +++ b/.github/workflows/deploy-vue_config.yml @@ -32,12 +32,17 @@ jobs: - name: Install dependencies (on cache miss) working-directory: ${{env.working-directory}} if: steps.cache-dependencies.outputs.cache-hit == false - run: npm install + run: npm ci - name: Build the Vue app working-directory: ${{env.working-directory}} run: npm run build - + - name: Fix permissions + run: | + chmod -c -R +rX "${{env.working-directory}}/dist" | while read line; do + echo "::warning title=Invalid file permissions automatically fixed::$line" + done + - name: Create Artefact uses: actions/upload-artifact@v3 with: @@ -45,4 +50,4 @@ jobs: path: ${{env.working-directory}}/dist # Replace with the path to your build output - name: Deploy to GH-Pages - uses: actions/deploy-pages@v1 + uses: actions/deploy-pages@v4 From 82073ee529fa1b321321d846450cd66ddaecc061 Mon Sep 17 00:00:00 2001 From: Yuru Baku <35851389+yuru-baku@users.noreply.github.com> Date: Wed, 28 Feb 2024 14:07:44 +0000 Subject: [PATCH 32/37] Update deploy-vue_config.yml --- .github/workflows/deploy-vue_config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-vue_config.yml b/.github/workflows/deploy-vue_config.yml index c96a11f..654d9a1 100644 --- a/.github/workflows/deploy-vue_config.yml +++ b/.github/workflows/deploy-vue_config.yml @@ -44,7 +44,7 @@ jobs: done - name: Create Artefact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: github-pages # Replace with your desired name path: ${{env.working-directory}}/dist # Replace with the path to your build output From 3a81122b99a1c52db4676d3a4fb581491e087a4f Mon Sep 17 00:00:00 2001 From: Yuru Baku <35851389+yuru-baku@users.noreply.github.com> Date: Wed, 28 Feb 2024 14:22:59 +0000 Subject: [PATCH 33/37] Update deploy-vue_config.yml --- .github/workflows/deploy-vue_config.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy-vue_config.yml b/.github/workflows/deploy-vue_config.yml index 654d9a1..8e1cfe4 100644 --- a/.github/workflows/deploy-vue_config.yml +++ b/.github/workflows/deploy-vue_config.yml @@ -14,10 +14,10 @@ jobs: working-directory: frontend-vue steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4.0.4 - name: Use Node.js 20 - uses: actions/setup-node@v4 + uses: actions/setup-node@v4.0.4 with: node-version: 20 @@ -32,7 +32,7 @@ jobs: - name: Install dependencies (on cache miss) working-directory: ${{env.working-directory}} if: steps.cache-dependencies.outputs.cache-hit == false - run: npm ci + run: npm ci - name: Build the Vue app working-directory: ${{env.working-directory}} @@ -44,10 +44,10 @@ jobs: done - name: Create Artefact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v4.0.4 with: name: github-pages # Replace with your desired name path: ${{env.working-directory}}/dist # Replace with the path to your build output - name: Deploy to GH-Pages - uses: actions/deploy-pages@v4 + uses: actions/deploy-pages@v4.0.4 From 3d56b6f7d5d27590e6008dcdba2b7e7a579a518e Mon Sep 17 00:00:00 2001 From: Yuru Baku <35851389+yuru-baku@users.noreply.github.com> Date: Wed, 28 Feb 2024 14:27:17 +0000 Subject: [PATCH 34/37] Update deploy-vue_config.yml --- .github/workflows/deploy-vue_config.yml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/.github/workflows/deploy-vue_config.yml b/.github/workflows/deploy-vue_config.yml index 8e1cfe4..c2a55c6 100644 --- a/.github/workflows/deploy-vue_config.yml +++ b/.github/workflows/deploy-vue_config.yml @@ -14,15 +14,15 @@ jobs: working-directory: frontend-vue steps: - - uses: actions/checkout@v4.0.4 + - uses: actions/checkout@v4.1.1 - name: Use Node.js 20 - uses: actions/setup-node@v4.0.4 + uses: actions/setup-node@vv4.0.2 with: node-version: 20 - name: Cache Dependencies - uses: actions/cache@v4 + uses: actions/cache@vv4.0.0 with: path: ${{env.working-directory}}/node_modules key: ${{ runner.os }}-build-${{ hashFiles('package-lock.json') }} @@ -37,17 +37,14 @@ jobs: - name: Build the Vue app working-directory: ${{env.working-directory}} run: npm run build + - name: Fix permissions run: | chmod -c -R +rX "${{env.working-directory}}/dist" | while read line; do echo "::warning title=Invalid file permissions automatically fixed::$line" done - - - name: Create Artefact - uses: actions/upload-artifact@v4.0.4 - with: - name: github-pages # Replace with your desired name - path: ${{env.working-directory}}/dist # Replace with the path to your build output - - name: Deploy to GH-Pages - uses: actions/deploy-pages@v4.0.4 + - name: Upload GitHub Pages artifact + uses: actions/upload-pages-artifact@v3.0.1 + with: + path: ${{env.working-directory}}/dist From 947d3a3f7c2a0e6bd2bc32a4fcc6193b113dbecc Mon Sep 17 00:00:00 2001 From: Yuru Baku <35851389+yuru-baku@users.noreply.github.com> Date: Wed, 28 Feb 2024 14:28:09 +0000 Subject: [PATCH 35/37] Update deploy-vue_config.yml --- .github/workflows/deploy-vue_config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-vue_config.yml b/.github/workflows/deploy-vue_config.yml index c2a55c6..7c91a3e 100644 --- a/.github/workflows/deploy-vue_config.yml +++ b/.github/workflows/deploy-vue_config.yml @@ -17,12 +17,12 @@ jobs: - uses: actions/checkout@v4.1.1 - name: Use Node.js 20 - uses: actions/setup-node@vv4.0.2 + uses: actions/setup-node@v4.0.2 with: node-version: 20 - name: Cache Dependencies - uses: actions/cache@vv4.0.0 + uses: actions/cache@v4.0.0 with: path: ${{env.working-directory}}/node_modules key: ${{ runner.os }}-build-${{ hashFiles('package-lock.json') }} From 488fe27e233ec6a8f129f22a8568f7b68d08ed2d Mon Sep 17 00:00:00 2001 From: Yuru Baku <35851389+yuru-baku@users.noreply.github.com> Date: Wed, 28 Feb 2024 14:34:10 +0000 Subject: [PATCH 36/37] Update deploy-vue_config.yml --- .github/workflows/deploy-vue_config.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy-vue_config.yml b/.github/workflows/deploy-vue_config.yml index 7c91a3e..833ccb5 100644 --- a/.github/workflows/deploy-vue_config.yml +++ b/.github/workflows/deploy-vue_config.yml @@ -48,3 +48,5 @@ jobs: uses: actions/upload-pages-artifact@v3.0.1 with: path: ${{env.working-directory}}/dist + - name: Deploy to GitHub Pages + uses: actions/deploy-pages@v4.0.4 From 193bbd62eaadbfbf4e5688444d5ebfc2893c889c Mon Sep 17 00:00:00 2001 From: Yuru Baku <35851389+yuru-baku@users.noreply.github.com> Date: Wed, 28 Feb 2024 14:37:07 +0000 Subject: [PATCH 37/37] Update deploy-vue_config.yml --- .github/workflows/deploy-vue_config.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-vue_config.yml b/.github/workflows/deploy-vue_config.yml index 833ccb5..4101986 100644 --- a/.github/workflows/deploy-vue_config.yml +++ b/.github/workflows/deploy-vue_config.yml @@ -1,6 +1,9 @@ name: Build and Deploy Vue App -on: [push] +on: + push: + branches: + - main permissions: contents: read