Skip to content

Commit

Permalink
Change rule of tag
Browse files Browse the repository at this point in the history
  • Loading branch information
kbinani committed Aug 12, 2024
1 parent 9c8d9f3 commit 01e5183
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
branches:
- main
tags:
- "[0-9]+.[0-9]+.[0-9]+"
- "web-[0-9]+.[0-9]+.[0-9]+"
jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -27,18 +27,23 @@ jobs:
pages: write
id-token: write
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
if: startsWith(github.ref, 'refs/tags/web-')
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: get-version
run: |
version=$(echo ${{ github.ref }} | cut -d- -f2)
echo "version=$version" >> $GITHUB_OUTPUT
- run: echo "version=${{ steps.get-version.outputs.version }}"
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/configure-pages@v5
- name: Build
env:
KSESH_VERSION: ${{ github.ref_name }}
KSESH_VERSION: ${{ steps.get-version.outputs.version }}
run: |
npm install
make
Expand Down

0 comments on commit 01e5183

Please sign in to comment.