You've already forked tf2wikipricing
ci: rework actions
- build now only runs on non-versioned tags and PRs - release runs on versioned tags only
This commit is contained in:
@@ -1,6 +1,10 @@
|
|||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
on: [push, pull_request]
|
on:
|
||||||
|
push:
|
||||||
|
tags-ignore:
|
||||||
|
- 'v*'
|
||||||
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ name: CI
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- '*'
|
- 'v*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -22,6 +22,14 @@ jobs:
|
|||||||
name: tf2wikipricing.user.js
|
name: tf2wikipricing.user.js
|
||||||
path: |
|
path: |
|
||||||
dist/userscript/tf2wikipricing.user.js
|
dist/userscript/tf2wikipricing.user.js
|
||||||
|
deploy:
|
||||||
|
runs-on: debian-latest
|
||||||
|
needs: build
|
||||||
|
steps:
|
||||||
|
- name: Download release artifacts
|
||||||
|
uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: tf2wikipricing.user.js
|
||||||
- name: Read package.json version
|
- name: Read package.json version
|
||||||
uses: tyankatsu0105/read-package-version-actions@v1
|
uses: tyankatsu0105/read-package-version-actions@v1
|
||||||
id: version
|
id: version
|
||||||
@@ -30,5 +38,6 @@ jobs:
|
|||||||
uses: akkuman/gitea-release-action@v1
|
uses: akkuman/gitea-release-action@v1
|
||||||
with:
|
with:
|
||||||
name: ${{ steps.version.outputs.version }}
|
name: ${{ steps.version.outputs.version }}
|
||||||
files: |-
|
files: |
|
||||||
/dist/userscript/**
|
*.user.js
|
||||||
|
sha256sum: true
|
||||||
Reference in New Issue
Block a user