diff --git a/.github/workflows/webpack.yml b/.github/workflows/webpack.yml index d9f4fd4..8cb01d6 100644 --- a/.github/workflows/webpack.yml +++ b/.github/workflows/webpack.yml @@ -50,14 +50,28 @@ jobs: - name: Build project run: yarn build - - name: Commit build to output branch + - name: Copy folder contents + run: | + cp -r docs/ + + - name: Checkout to build branch run: | git fetch - branch_name="build" - git add docs/ -f - git checkout "${branch_name}" + git checkout build + echo "Checkout to branch :build" + + - name: Paste folder contents + run: | + mv docs/ + + - name: Commit changes + run: | + git add docs/ version=$(echo "${{ github.ref }}" | sed 's/refs\/tags\/v//') echo "Tag version: $version" - echo "Checkout to branch :${branch_name}" git commit -m "update version to v$version" - git push origin "${branch_name}" + git push + + + + \ No newline at end of file diff --git a/package.json b/package.json index 67797b0..4e68e83 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tetris-battle", - "version": "1.0.29", + "version": "1.0.30", "description": "forFun", "main": "index.js", "repository": "https://github.com/s956142/tetris-battle.git",