diff --git a/.github/workflows/deploy_dist.yml b/.github/workflows/deploy_dist.yml index 9a9dc9e..f814cfa 100644 --- a/.github/workflows/deploy_dist.yml +++ b/.github/workflows/deploy_dist.yml @@ -28,6 +28,7 @@ jobs: fi version=$(grep "^version = " build.conf | sed -e 's/^version = //') echo "configuring character generator version ${version} ..." + echo "ver=${version}" >> $GITHUB_ENV - name: Prepare Node.js run: | @@ -35,11 +36,7 @@ jobs: npm install - name: Package Web - run: | - version=$(grep "^version = " build.conf | sed -e 's/^version = //') - python3 build.py dist-web + run: python3 build.py dist-web - name: Package Desktop - run: | - version=$(grep "^version = " build.conf | sed -e 's/^version = //') - python3 build.py dist-desktop + run: python3 build.py dist-desktop diff --git a/.github/workflows/deploy_page.yml b/.github/workflows/deploy_page.yml index 1115a72..552e369 100644 --- a/.github/workflows/deploy_page.yml +++ b/.github/workflows/deploy_page.yml @@ -30,12 +30,12 @@ jobs: fi version=$(grep "^version = " build.conf | sed -e 's/^version = //') echo "configuring character generator version ${version} ..." + echo "ver=${version}" >> $GITHUB_ENV - name: Stage run: | - version=$(grep "^version = " build.conf | sed -e 's/^version = //') python3 build.py stage-web - sed -i -e "s/\"asset-info\":\(.*\?\)\/master\//\"asset-info\":\1\/v${version}\//" build/web/script/config.js + sed -i -e "s/\"asset-info\":\(.*\?\)\/master\//\"asset-info\":\1\/v${{ env.ver }}\//" build/web/script/config.js - name: Publish uses: peaceiris/actions-gh-pages@v3