diff --git a/.github/workflows/release-workflow.yml b/.github/workflows/release-workflow-v1.yml similarity index 94% rename from .github/workflows/release-workflow.yml rename to .github/workflows/release-workflow-v1.yml index 014e961328..4c9055abd3 100644 --- a/.github/workflows/release-workflow.yml +++ b/.github/workflows/release-workflow-v1.yml @@ -24,11 +24,15 @@ jobs: - uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3 with: node-version: 22 - - name: Get semver info + - name: Check prerelease id: semver - uses: akshens/semver-tag@8e427cd48c699c97d021df4946f3a0e65af5047e # v4 - with: - version: ${{ github.ref_name }} + shell: bash + run: | + if [[ "${{ github.ref_name }}" == *"-rc"* ]]; then + echo "is-prerelease=true" >> $GITHUB_OUTPUT + else + echo "is-prerelease=false" >> $GITHUB_OUTPUT + fi - name: Get version number id: version-number @@ -110,7 +114,7 @@ jobs: uses: ad-m/github-push-action@40bf560936a8022e68a3c00e7d2abefaf01305a6 # v0.6.0 with: github_token: ${{ secrets.ACCESS_TOKEN }} - branch: main + branch: v1 directory: website/ repository: processing/p5.js-website diff --git a/.github/workflows/release-workflow-v2.yml b/.github/workflows/release-workflow-v2.yml index 57dc0af3e3..7253b8438d 100644 --- a/.github/workflows/release-workflow-v2.yml +++ b/.github/workflows/release-workflow-v2.yml @@ -24,11 +24,15 @@ jobs: - uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3 with: node-version: 22 - - name: Get semver info + - name: Check prerelease id: semver - uses: akshens/semver-tag@8e427cd48c699c97d021df4946f3a0e65af5047e # v4 - with: - version: ${{ github.ref_name }} + shell: bash + run: | + if [[ "${{ github.ref_name }}" == *"-rc"* ]]; then + echo "is-prerelease=true" >> $GITHUB_OUTPUT + else + echo "is-prerelease=false" >> $GITHUB_OUTPUT + fi - name: Get version number id: version-number @@ -113,4 +117,4 @@ jobs: github_token: ${{ secrets.ACCESS_TOKEN }} branch: '2.0' directory: website/ - repository: processing/p5.js-website \ No newline at end of file + repository: processing/p5.js-website