this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Move release creation to prodtag

There is a limitation of workflow: An action in a workflow run can’t trigger a new workflow run.
https://github.com/orgs/community/discussions/27028#discussioncomment-3254360

+12 -27
+12 -1
.github/workflows/prodtag.yml
··· 1 - name: Auto-create tag on every push to `production` 1 + name: Auto-create tag/release on every push to `production` 2 2 3 3 on: 4 4 push: ··· 8 8 jobs: 9 9 tag: 10 10 runs-on: ubuntu-latest 11 + permissions: 12 + contents: write 11 13 steps: 12 14 - uses: actions/checkout@v4 13 15 with: 14 16 ref: production 15 17 - run: git tag "`date +%Y.%m.%d`.`git rev-parse --short HEAD`" $(git rev-parse HEAD) 16 18 - run: git push --tags 19 + - uses: actions/setup-node@v3 20 + with: 21 + node-version: 18 22 + - run: npm ci && npm run build 23 + - run: cd dist && zip -r ../phanpy-dist.zip . && cd .. 24 + - uses: softprops/action-gh-release@v1 25 + with: 26 + generate_release_notes: true 27 + files: phanpy-dist.zip
-26
.github/workflows/tagrelease.yml
··· 1 - name: Create Release on every tag push in `production` 2 - 3 - on: 4 - push: 5 - tags: 6 - - '*' 7 - workflow_dispatch: 8 - 9 - jobs: 10 - release: 11 - runs-on: ubuntu-latest 12 - permissions: 13 - contents: write 14 - steps: 15 - - uses: actions/checkout@v4 16 - with: 17 - ref: production 18 - - uses: actions/setup-node@v3 19 - with: 20 - node-version: 18 21 - - run: npm ci && npm run build 22 - - run: cd dist && zip -r ../phanpy-dist.zip . && cd .. 23 - - uses: softprops/action-gh-release@v1 24 - with: 25 - generate_release_notes: true 26 - files: phanpy-dist.zip