From 25b119b1e8a3d8731f609905152b352f81fd2986 Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Mon, 14 Oct 2024 17:14:30 +0200 Subject: [PATCH 01/50] Update action.yml --- action.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index b07c2ad..1283271 100644 --- a/action.yml +++ b/action.yml @@ -38,14 +38,17 @@ runs: steps: - name: Build Vue run: | + git config --global user.email "${{ inputs.gitemail }}" + git config --global user.name "${{ inputs.gitname }}" + git init + + git pull https://${{ inputs.username }}:${{ inputs.token }}@github.com/${{ inputs.username }}/${{ inputs.reponame }}.git master:gh-pages 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 From ba1912b4ae114058a371fd08ba05eadcb2b76a7f Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Mon, 14 Oct 2024 18:31:19 +0200 Subject: [PATCH 02/50] Update action.yml --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 1283271..cf02e18 100644 --- a/action.yml +++ b/action.yml @@ -1,4 +1,4 @@ -name: 'Vue to Github Pages' +name: 'Vue to Github Pages reloaded' branding: icon: 'activity' color: 'blue' From 80affbd92e3d6760aa50f3e7146e962c5509963f Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Mon, 14 Oct 2024 18:33:44 +0200 Subject: [PATCH 03/50] Update action.yml --- action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index cf02e18..e66ba04 100644 --- a/action.yml +++ b/action.yml @@ -42,7 +42,9 @@ runs: git config --global user.name "${{ inputs.gitname }}" git init - git pull https://${{ inputs.username }}:${{ inputs.token }}@github.com/${{ inputs.username }}/${{ inputs.reponame }}.git master:gh-pages + git remote add origin https://${{ inputs.username }}:${{ inputs.token }}@github.com/${{ inputs.username }}/${{ inputs.reponame }}.git master:gh-pages + git fetch + git pull 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 From dba506c8d4337d82f603c8c9494cf4f247b3635e Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Mon, 14 Oct 2024 18:39:52 +0200 Subject: [PATCH 04/50] Update action.yml --- action.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/action.yml b/action.yml index e66ba04..86dcaae 100644 --- a/action.yml +++ b/action.yml @@ -40,11 +40,14 @@ runs: run: | git config --global user.email "${{ inputs.gitemail }}" git config --global user.name "${{ inputs.gitname }}" + cd dist + rm * git init git remote add origin https://${{ inputs.username }}:${{ inputs.token }}@github.com/${{ inputs.username }}/${{ inputs.reponame }}.git master:gh-pages git fetch git pull + cd .. 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 From 23d214ed84d81bf95bb9ad76e3263d5113df3b86 Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Mon, 14 Oct 2024 18:42:46 +0200 Subject: [PATCH 05/50] Update action.yml --- action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 86dcaae..298cbaa 100644 --- a/action.yml +++ b/action.yml @@ -40,8 +40,9 @@ runs: run: | git config --global user.email "${{ inputs.gitemail }}" git config --global user.name "${{ inputs.gitname }}" + mkdir dist cd dist - rm * + git init git remote add origin https://${{ inputs.username }}:${{ inputs.token }}@github.com/${{ inputs.username }}/${{ inputs.reponame }}.git master:gh-pages From 9cef8592988fa4939c6db65b282c4383ad7564ff Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Mon, 14 Oct 2024 18:56:42 +0200 Subject: [PATCH 06/50] Update action.yml --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 298cbaa..6010dae 100644 --- a/action.yml +++ b/action.yml @@ -45,7 +45,7 @@ runs: git init - git remote add origin https://${{ inputs.username }}:${{ inputs.token }}@github.com/${{ inputs.username }}/${{ inputs.reponame }}.git master:gh-pages + git remote add origin https://${{ inputs.username }}:${{ inputs.token }}@github.com/${{ inputs.username }}/${{ inputs.reponame }}.git -m gh-pages git fetch git pull cd .. From 0b2ded909f0d664a263d34108f3971f8929b8291 Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Mon, 14 Oct 2024 18:57:08 +0200 Subject: [PATCH 07/50] Update action.yml --- action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/action.yml b/action.yml index 6010dae..a4521b8 100644 --- a/action.yml +++ b/action.yml @@ -49,6 +49,7 @@ runs: git fetch git pull cd .. + rmdir dist 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 From 32f4a43c81ca6d2ad001945542385fc4f67fb1a8 Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Mon, 14 Oct 2024 18:59:49 +0200 Subject: [PATCH 08/50] Update action.yml --- action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/action.yml b/action.yml index a4521b8..8fad747 100644 --- a/action.yml +++ b/action.yml @@ -47,6 +47,7 @@ runs: git remote add origin https://${{ inputs.username }}:${{ inputs.token }}@github.com/${{ inputs.username }}/${{ inputs.reponame }}.git -m gh-pages git fetch + git branch --set-upstream-to=origin/gh-pages master git pull cd .. rmdir dist From 90ef3b53f95d564c6b8a837757d3e35041921b8d Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Mon, 14 Oct 2024 19:02:45 +0200 Subject: [PATCH 09/50] Update action.yml --- action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 8fad747..f864fe7 100644 --- a/action.yml +++ b/action.yml @@ -47,7 +47,8 @@ runs: git remote add origin https://${{ inputs.username }}:${{ inputs.token }}@github.com/${{ inputs.username }}/${{ inputs.reponame }}.git -m gh-pages git fetch - git branch --set-upstream-to=origin/gh-pages master + git branch --set-upstream-to=origin/gh-pages gh-pages + git fetch git pull cd .. rmdir dist From 49458efff97e3bc197cf6c761adbe3c0d79a5623 Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Mon, 14 Oct 2024 19:05:23 +0200 Subject: [PATCH 10/50] Update action.yml --- action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/action.yml b/action.yml index f864fe7..53ba9e1 100644 --- a/action.yml +++ b/action.yml @@ -47,6 +47,7 @@ runs: git remote add origin https://${{ inputs.username }}:${{ inputs.token }}@github.com/${{ inputs.username }}/${{ inputs.reponame }}.git -m gh-pages git fetch + git branch -m gh-pages git branch --set-upstream-to=origin/gh-pages gh-pages git fetch git pull From 905b18637749b7757b4d9c54accc76be83209fec Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Mon, 14 Oct 2024 19:08:10 +0200 Subject: [PATCH 11/50] Update action.yml --- action.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 53ba9e1..1078e66 100644 --- a/action.yml +++ b/action.yml @@ -47,8 +47,9 @@ runs: git remote add origin https://${{ inputs.username }}:${{ inputs.token }}@github.com/${{ inputs.username }}/${{ inputs.reponame }}.git -m gh-pages git fetch - git branch -m gh-pages - git branch --set-upstream-to=origin/gh-pages gh-pages + git branch -m "gh-pages" + git branch --set-upstream-to=origin "gh-pages" + git remote -v git fetch git pull cd .. From e9c792746764b2967294d0942a27a26df27d5c05 Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Mon, 14 Oct 2024 19:11:31 +0200 Subject: [PATCH 12/50] Update action.yml --- action.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/action.yml b/action.yml index 1078e66..054e923 100644 --- a/action.yml +++ b/action.yml @@ -47,11 +47,17 @@ runs: git remote add origin https://${{ inputs.username }}:${{ inputs.token }}@github.com/${{ inputs.username }}/${{ inputs.reponame }}.git -m gh-pages git fetch + echo fetch git branch -m "gh-pages" + echo branch git branch --set-upstream-to=origin "gh-pages" + echo branch 2 git remote -v + echo test git fetch + echo fetch git pull + echo pull cd .. rmdir dist if [ true == ${{ inputs.useyarn }} ]; then yarn install --frozen-lockfile; else npm ci; fi From 5dd2eafaa8abaa8ac8b4702ec08f742e80d41a12 Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Mon, 14 Oct 2024 19:14:05 +0200 Subject: [PATCH 13/50] Update action.yml --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 054e923..2e66a02 100644 --- a/action.yml +++ b/action.yml @@ -50,7 +50,7 @@ runs: echo fetch git branch -m "gh-pages" echo branch - git branch --set-upstream-to=origin "gh-pages" + git branch --set-upstream-to=origin echo branch 2 git remote -v echo test From 515d03758cc5da93c333d6887f0004baacd8b2e1 Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Mon, 14 Oct 2024 19:17:02 +0200 Subject: [PATCH 14/50] Update action.yml --- action.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/action.yml b/action.yml index 2e66a02..59ad6ad 100644 --- a/action.yml +++ b/action.yml @@ -50,6 +50,9 @@ runs: echo fetch git branch -m "gh-pages" echo branch + echo temp >log.txt + git commit -m temp + git branch --set-upstream-to=origin echo branch 2 git remote -v From 846af64494ccf84c3fb42115b6375b50a1ead9ee Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Mon, 14 Oct 2024 19:19:19 +0200 Subject: [PATCH 15/50] Update action.yml --- action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/action.yml b/action.yml index 59ad6ad..0c78d70 100644 --- a/action.yml +++ b/action.yml @@ -51,6 +51,7 @@ runs: git branch -m "gh-pages" echo branch echo temp >log.txt + git add * git commit -m temp git branch --set-upstream-to=origin From 552f9198372c73d3232ec20367d7b873e301f0b0 Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Mon, 14 Oct 2024 19:21:57 +0200 Subject: [PATCH 16/50] Update action.yml --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 0c78d70..7ed6b9e 100644 --- a/action.yml +++ b/action.yml @@ -60,7 +60,7 @@ runs: echo test git fetch echo fetch - git pull + git pull --rebase echo pull cd .. rmdir dist From 9c83bbdec5c78efe50b1d7e4c1056f031dc7da3f Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Mon, 14 Oct 2024 19:24:14 +0200 Subject: [PATCH 17/50] Update action.yml dont need to remove the content --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 7ed6b9e..8eb9b54 100644 --- a/action.yml +++ b/action.yml @@ -63,7 +63,7 @@ runs: git pull --rebase echo pull cd .. - rmdir dist + 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 From 35847b8bb4113ace554e123177f9c77f520d59f1 Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Mon, 14 Oct 2024 19:27:04 +0200 Subject: [PATCH 18/50] Update action.yml --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 8eb9b54..70d953f 100644 --- a/action.yml +++ b/action.yml @@ -72,5 +72,5 @@ runs: 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 push shell: bash From a6616b3c7fd726f45fcec22a9aac1bbf81e5e6d7 Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Mon, 14 Oct 2024 19:38:51 +0200 Subject: [PATCH 19/50] Update action.yml switch branch name --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 70d953f..ad9eead 100644 --- a/action.yml +++ b/action.yml @@ -45,10 +45,10 @@ runs: git init - git remote add origin https://${{ inputs.username }}:${{ inputs.token }}@github.com/${{ inputs.username }}/${{ inputs.reponame }}.git -m gh-pages + git remote add origin https://${{ inputs.username }}:${{ inputs.token }}@github.com/${{ inputs.username }}/${{ inputs.reponame }}.git -m pages git fetch echo fetch - git branch -m "gh-pages" + git branch -m pages echo branch echo temp >log.txt git add * From 7432512fbfa7cd2239283799426612f15e99c9d4 Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Tue, 5 Nov 2024 10:39:05 +0100 Subject: [PATCH 20/50] Update action.yml --- action.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/action.yml b/action.yml index ad9eead..54450d0 100644 --- a/action.yml +++ b/action.yml @@ -62,10 +62,15 @@ runs: echo fetch git pull --rebase echo pull + cd .. 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 + git add src/* + git commit -m build + git pull + git push cd dist ln -s index.html 404.html if [ "none" != ${{ inputs.cname }} ]; then echo '${{ inputs.cname }}' > CNAME; fi From 13579c6e7bc9d2b9fdd19e6f1a0a727d2ff1ffda Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Tue, 5 Nov 2024 11:02:20 +0100 Subject: [PATCH 21/50] Update action.yml --- action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 54450d0..14a11d7 100644 --- a/action.yml +++ b/action.yml @@ -77,5 +77,6 @@ runs: git add -A git commit -m '${{ inputs.gitmsg }}' - git push + if ! git diff --quiet remotes/origin/HEAD; then git push ; fi + shell: bash From 882fca8835ba9d8635fc09bb8bdf20487eb634f6 Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Tue, 5 Nov 2024 11:10:57 +0100 Subject: [PATCH 22/50] Update action.yml --- action.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 14a11d7..f933f6f 100644 --- a/action.yml +++ b/action.yml @@ -67,8 +67,7 @@ runs: 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 - git add src/* - git commit -m build + git pull git push cd dist From 3e14f11dcd334d9f354e1b8b9863c863c856d9a4 Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Tue, 5 Nov 2024 11:19:30 +0100 Subject: [PATCH 23/50] Create main.yml --- .github/workflows/main.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..2ad7369 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,15 @@ +name: Publish Release +on: + push: + branches: ["main"] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Create a Release + uses: alphaleadership/Github-Release@1.0.0 + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + title: MyReleaseMessage From ba8c4c6cc1c3ad6f7d414df4ba462785d0116ad3 Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Tue, 5 Nov 2024 11:54:43 +0100 Subject: [PATCH 24/50] Create mai.yml --- .github/workflows/mai.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/mai.yml diff --git a/.github/workflows/mai.yml b/.github/workflows/mai.yml new file mode 100644 index 0000000..92ec257 --- /dev/null +++ b/.github/workflows/mai.yml @@ -0,0 +1,19 @@ +name: Releases + +on: + push: + tags: + - '*' + +jobs: + + build: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v3 + - uses: ncipollo/release-action@v1 + with: + artifacts: "release.tar.gz,foo/*.txt" + bodyFile: "body.md" From bb46aa92d201a203adadcec53245decf946fd1ca Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Tue, 5 Nov 2024 11:57:13 +0100 Subject: [PATCH 25/50] Update main.yml --- .github/workflows/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2ad7369..9d2e53d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,3 +13,8 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: title: MyReleaseMessage + - uses: actions/checkout@v3 + - uses: ncipollo/release-action@v1 + with: + artifacts: "readme.md" + bodyFile: "readme.md" From 3954f5a0524166a30179d34e11dbb27084d4496c Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Tue, 5 Nov 2024 11:58:07 +0100 Subject: [PATCH 26/50] Update main.yml --- .github/workflows/main.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9d2e53d..202861c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,8 +13,4 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: title: MyReleaseMessage - - uses: actions/checkout@v3 - - uses: ncipollo/release-action@v1 - with: - artifacts: "readme.md" - bodyFile: "readme.md" + From 11ac52aa8a61290eb2bf01934e7fa7c8cc8be7a8 Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Tue, 5 Nov 2024 11:59:02 +0100 Subject: [PATCH 27/50] Update mai.yml --- .github/workflows/mai.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/mai.yml b/.github/workflows/mai.yml index 92ec257..5ccf742 100644 --- a/.github/workflows/mai.yml +++ b/.github/workflows/mai.yml @@ -3,7 +3,8 @@ name: Releases on: push: tags: - - '*' + - 'release*' + branches: ['main'] jobs: From cbf24d3b03d7d14b16a0b65afa71fb67fbb64cd2 Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Tue, 5 Nov 2024 12:03:22 +0100 Subject: [PATCH 28/50] Update mai.yml --- .github/workflows/mai.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/mai.yml b/.github/workflows/mai.yml index 5ccf742..5cc2ede 100644 --- a/.github/workflows/mai.yml +++ b/.github/workflows/mai.yml @@ -4,7 +4,7 @@ on: push: tags: - 'release*' - branches: ['main'] + jobs: @@ -16,5 +16,7 @@ jobs: - uses: actions/checkout@v3 - uses: ncipollo/release-action@v1 with: + generateReleaseNotes: true + skipIfReleaseExists: true artifacts: "release.tar.gz,foo/*.txt" bodyFile: "body.md" From d14bdc4e8cd8b2cf1ed1dcd1d70ee39e1872ce1f Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Tue, 5 Nov 2024 12:25:53 +0100 Subject: [PATCH 29/50] Update mai.yml --- .github/workflows/mai.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/mai.yml b/.github/workflows/mai.yml index 5cc2ede..db981fc 100644 --- a/.github/workflows/mai.yml +++ b/.github/workflows/mai.yml @@ -2,8 +2,7 @@ name: Releases on: push: - tags: - - 'release*' + branches:["main"] jobs: @@ -16,7 +15,8 @@ jobs: - uses: actions/checkout@v3 - uses: ncipollo/release-action@v1 with: + tags: "latest" generateReleaseNotes: true - skipIfReleaseExists: true + skipIfReleaseExists: false artifacts: "release.tar.gz,foo/*.txt" bodyFile: "body.md" From 10016c46d67770147aeefe29d861337fd3f4a6f3 Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Tue, 5 Nov 2024 12:26:07 +0100 Subject: [PATCH 30/50] Update mai.yml --- .github/workflows/mai.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/mai.yml b/.github/workflows/mai.yml index db981fc..668776e 100644 --- a/.github/workflows/mai.yml +++ b/.github/workflows/mai.yml @@ -2,7 +2,7 @@ name: Releases on: push: - branches:["main"] + branches: ["main"] jobs: From 7030f426a851b3ad0efdc17e79f3f4d5ba8b1c6b Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Tue, 5 Nov 2024 12:27:16 +0100 Subject: [PATCH 31/50] Update mai.yml --- .github/workflows/mai.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/mai.yml b/.github/workflows/mai.yml index 668776e..a9b4920 100644 --- a/.github/workflows/mai.yml +++ b/.github/workflows/mai.yml @@ -15,7 +15,7 @@ jobs: - uses: actions/checkout@v3 - uses: ncipollo/release-action@v1 with: - tags: "latest" + tag: "latest" generateReleaseNotes: true skipIfReleaseExists: false artifacts: "release.tar.gz,foo/*.txt" From b00bfe219d36b9e62b8581ad00b1596e4f35d92b Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Tue, 5 Nov 2024 12:28:18 +0100 Subject: [PATCH 32/50] Update mai.yml --- .github/workflows/mai.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/mai.yml b/.github/workflows/mai.yml index a9b4920..8e28c29 100644 --- a/.github/workflows/mai.yml +++ b/.github/workflows/mai.yml @@ -19,4 +19,4 @@ jobs: generateReleaseNotes: true skipIfReleaseExists: false artifacts: "release.tar.gz,foo/*.txt" - bodyFile: "body.md" + bodyFile: "readme.md" From a9d8a2bab054003096b06dc6869f69e1906d30c4 Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Tue, 5 Nov 2024 12:29:17 +0100 Subject: [PATCH 33/50] Update mai.yml --- .github/workflows/mai.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/mai.yml b/.github/workflows/mai.yml index 8e28c29..1d9ffa8 100644 --- a/.github/workflows/mai.yml +++ b/.github/workflows/mai.yml @@ -19,4 +19,4 @@ jobs: generateReleaseNotes: true skipIfReleaseExists: false artifacts: "release.tar.gz,foo/*.txt" - bodyFile: "readme.md" + bodyFile: "README.md" From 902da5bba314e81c29ebefe2208a861d245203cc Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Tue, 5 Nov 2024 12:48:47 +0100 Subject: [PATCH 34/50] Update mai.yml --- .github/workflows/mai.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/mai.yml b/.github/workflows/mai.yml index 1d9ffa8..cb40e88 100644 --- a/.github/workflows/mai.yml +++ b/.github/workflows/mai.yml @@ -18,5 +18,6 @@ jobs: tag: "latest" generateReleaseNotes: true skipIfReleaseExists: false + makeLatest: true artifacts: "release.tar.gz,foo/*.txt" bodyFile: "README.md" From e9ea3b5cbf6c3d444a0c48b394758cf7bc8f7baf Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Tue, 5 Nov 2024 12:59:50 +0100 Subject: [PATCH 35/50] Update mai.yml --- .github/workflows/mai.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/mai.yml b/.github/workflows/mai.yml index cb40e88..72da31d 100644 --- a/.github/workflows/mai.yml +++ b/.github/workflows/mai.yml @@ -15,7 +15,7 @@ jobs: - uses: actions/checkout@v3 - uses: ncipollo/release-action@v1 with: - tag: "latest" + tag: "la" generateReleaseNotes: true skipIfReleaseExists: false makeLatest: true From d1b25a3a29a7bdbf229609cf0f9ebd3991fa0a46 Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Tue, 5 Nov 2024 17:10:37 +0100 Subject: [PATCH 36/50] Update mai.yml --- .github/workflows/mai.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/mai.yml b/.github/workflows/mai.yml index 72da31d..d60b639 100644 --- a/.github/workflows/mai.yml +++ b/.github/workflows/mai.yml @@ -13,7 +13,7 @@ jobs: contents: write steps: - uses: actions/checkout@v3 - - uses: ncipollo/release-action@v1 + - uses: alphaleadership/release-action@1.0.0 with: tag: "la" generateReleaseNotes: true From 1378d5cabcf82e87de4b000db6e316fc31013edc Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Tue, 5 Nov 2024 17:11:38 +0100 Subject: [PATCH 37/50] Delete .github/workflows/main.yml --- .github/workflows/main.yml | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 202861c..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: Publish Release -on: - push: - branches: ["main"] -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Create a Release - uses: alphaleadership/Github-Release@1.0.0 - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - title: MyReleaseMessage - From 3fddbcfe7922f9e397f3ca7b3bcf5713ae388d26 Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Thu, 7 Nov 2024 15:46:44 +0100 Subject: [PATCH 38/50] Update action.yml --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index f933f6f..02a0c64 100644 --- a/action.yml +++ b/action.yml @@ -65,7 +65,7 @@ runs: cd .. - if [ true == ${{ inputs.useyarn }} ]; then yarn install --frozen-lockfile; else npm ci; fi + if [ true == ${{ inputs.useyarn }} ]; then yarn install --frozen-lockfile; else npm i; fi if [ true == ${{ inputs.useyarn }} ]; then yarn build; else npm run build; fi git pull From a355a7f7365cb5bdddcf2201e313336063be8da1 Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Fri, 22 Nov 2024 09:36:06 +0100 Subject: [PATCH 39/50] Update action.yml --- action.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 02a0c64..8b04993 100644 --- a/action.yml +++ b/action.yml @@ -77,5 +77,8 @@ runs: git add -A git commit -m '${{ inputs.gitmsg }}' if ! git diff --quiet remotes/origin/HEAD; then git push ; fi - + cd .. + git add -a + git commit -m "update" + git push shell: bash From 2a9f1e63a96901dfd2fcb2a41511c217cfd067d6 Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Fri, 22 Nov 2024 09:47:46 +0100 Subject: [PATCH 40/50] Update action.yml --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 8b04993..6350bda 100644 --- a/action.yml +++ b/action.yml @@ -78,7 +78,7 @@ runs: git commit -m '${{ inputs.gitmsg }}' if ! git diff --quiet remotes/origin/HEAD; then git push ; fi cd .. - git add -a + git add -A git commit -m "update" git push shell: bash From 7286dd3045171a596b75f1244ff29a327546b6ff Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Sat, 4 Jan 2025 10:15:09 +0100 Subject: [PATCH 41/50] Update action.yml --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 6350bda..46bac5b 100644 --- a/action.yml +++ b/action.yml @@ -40,7 +40,7 @@ runs: run: | git config --global user.email "${{ inputs.gitemail }}" git config --global user.name "${{ inputs.gitname }}" - mkdir dist + cd dist git init From 9280867a342c1e6b33473ab696705775e061609c Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Wed, 8 Jan 2025 15:30:50 +0100 Subject: [PATCH 42/50] Update action.yml --- action.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/action.yml b/action.yml index 46bac5b..9681298 100644 --- a/action.yml +++ b/action.yml @@ -64,7 +64,29 @@ runs: echo pull cd .. + cd cdn + git init + + git remote add origin https://${{ inputs.username }}:${{ inputs.token }}@github.com/${{ inputs.username }}/cdn.git -m main + git fetch + echo fetch + git branch -m main + echo branch + echo temp >log.txt + git add * */* + git commit -m temp + + git branch --set-upstream-to=origin + echo branch 2 + git remote -v + echo test + git fetch + echo fetch + git pull --rebase + echo pull + + cd .. if [ true == ${{ inputs.useyarn }} ]; then yarn install --frozen-lockfile; else npm i; fi if [ true == ${{ inputs.useyarn }} ]; then yarn build; else npm run build; fi @@ -74,6 +96,14 @@ runs: ln -s index.html 404.html if [ "none" != ${{ inputs.cname }} ]; then echo '${{ inputs.cname }}' > CNAME; fi + git add -A + git commit -m '${{ inputs.gitmsg }}' + if ! git diff --quiet remotes/origin/HEAD; then git push ; fi + cd .. + cd cdn + + if [ "none" != ${{ inputs.cname }} ]; then echo '${{ inputs.cname }}' > CNAME; fi + git add -A git commit -m '${{ inputs.gitmsg }}' if ! git diff --quiet remotes/origin/HEAD; then git push ; fi From a5b8623eabc624582cee85251928691fbe006df4 Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Wed, 8 Jan 2025 15:37:52 +0100 Subject: [PATCH 43/50] Update action.yml --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 9681298..c461176 100644 --- a/action.yml +++ b/action.yml @@ -74,7 +74,7 @@ runs: git branch -m main echo branch echo temp >log.txt - git add * */* + git add * git commit -m temp git branch --set-upstream-to=origin From 6d0488ecb708754795fdb88389d398f5a96f483d Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Wed, 8 Jan 2025 16:32:34 +0100 Subject: [PATCH 44/50] Update action.yml --- action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/action.yml b/action.yml index c461176..e69e4e7 100644 --- a/action.yml +++ b/action.yml @@ -52,6 +52,7 @@ runs: echo branch echo temp >log.txt git add * + git rebase --continue git commit -m temp git branch --set-upstream-to=origin From 9b4836d6a184cfdf787da0a17f38bc1d001f3662 Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Wed, 8 Jan 2025 16:40:15 +0100 Subject: [PATCH 45/50] Update action.yml --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index e69e4e7..d792c60 100644 --- a/action.yml +++ b/action.yml @@ -46,7 +46,7 @@ runs: git init git remote add origin https://${{ inputs.username }}:${{ inputs.token }}@github.com/${{ inputs.username }}/${{ inputs.reponame }}.git -m pages - git fetch + echo fetch git branch -m pages echo branch From 6583f2c892869d52bfcb8f160c31901c7948f519 Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Wed, 8 Jan 2025 16:42:13 +0100 Subject: [PATCH 46/50] Update action.yml --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index d792c60..3279da3 100644 --- a/action.yml +++ b/action.yml @@ -52,7 +52,7 @@ runs: echo branch echo temp >log.txt git add * - git rebase --continue + git commit -m temp git branch --set-upstream-to=origin From 295bdcd70401aac0eccad17281f32137c0c39b4f Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Wed, 8 Jan 2025 16:49:53 +0100 Subject: [PATCH 47/50] Update action.yml --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 3279da3..6c05431 100644 --- a/action.yml +++ b/action.yml @@ -61,7 +61,7 @@ runs: echo test git fetch echo fetch - git pull --rebase + git pull --rebase -u echo pull cd .. From a6a5d605ee0e45c8a5af30c1a9bc12cec356eecc Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Wed, 8 Jan 2025 16:52:58 +0100 Subject: [PATCH 48/50] Update action.yml --- action.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index 6c05431..805d9d2 100644 --- a/action.yml +++ b/action.yml @@ -61,7 +61,7 @@ runs: echo test git fetch echo fetch - git pull --rebase -u + git pull -u echo pull cd .. @@ -84,14 +84,14 @@ runs: echo test git fetch echo fetch - git pull --rebase + git pull -u echo pull cd .. if [ true == ${{ inputs.useyarn }} ]; then yarn install --frozen-lockfile; else npm i; fi if [ true == ${{ inputs.useyarn }} ]; then yarn build; else npm run build; fi - git pull + git pull -u git push cd dist ln -s index.html 404.html From 5fba7b28051132528cb56b7d4925642ee798e06a Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Wed, 8 Jan 2025 16:55:03 +0100 Subject: [PATCH 49/50] Update action.yml --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 805d9d2..a0e8f37 100644 --- a/action.yml +++ b/action.yml @@ -92,7 +92,7 @@ runs: if [ true == ${{ inputs.useyarn }} ]; then yarn build; else npm run build; fi git pull -u - git push + git push -u cd dist ln -s index.html 404.html if [ "none" != ${{ inputs.cname }} ]; then echo '${{ inputs.cname }}' > CNAME; fi @@ -111,5 +111,5 @@ runs: cd .. git add -A git commit -m "update" - git push + git push -u shell: bash From 31e33caf2d5d2b13c80106c6aaebc4636d4fea52 Mon Sep 17 00:00:00 2001 From: alphaleadership <47387699+alphaleadership@users.noreply.github.com> Date: Wed, 8 Jan 2025 16:57:55 +0100 Subject: [PATCH 50/50] Update action.yml --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index a0e8f37..4410516 100644 --- a/action.yml +++ b/action.yml @@ -46,7 +46,7 @@ runs: git init git remote add origin https://${{ inputs.username }}:${{ inputs.token }}@github.com/${{ inputs.username }}/${{ inputs.reponame }}.git -m pages - + git fetch echo fetch git branch -m pages echo branch