Skip to content

Commit

Permalink
update webpack.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
s956142 committed Apr 20, 2024
1 parent 18bc635 commit 5db313c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/webpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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



2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 5db313c

Please sign in to comment.