mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-31 03:48:42 +03:00
Fixed action format
This commit is contained in:
102
.github/workflows/ci/action.yml
vendored
102
.github/workflows/ci/action.yml
vendored
@@ -1,60 +1,58 @@
|
|||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
jobs:
|
runs:
|
||||||
|
name: Create artifacts
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
build:
|
steps:
|
||||||
name: Create artifacts
|
# Initialization
|
||||||
runs-on: ubuntu-latest
|
- uses: actions/checkout@v1
|
||||||
|
- uses: actions/setup-node@v1
|
||||||
|
- run: npm install
|
||||||
|
- name: Copy configuration
|
||||||
|
run: cp config.json.example config.json
|
||||||
|
|
||||||
steps:
|
# Create Chrome artifacts
|
||||||
# Initialization
|
- name: Create Chrome artifacts
|
||||||
- uses: actions/checkout@v1
|
run: npm run build:chrome
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/upload-artifact@v1
|
||||||
- run: npm install
|
with:
|
||||||
- name: Copy configuration
|
name: ChromeExtension
|
||||||
run: cp config.json.example config.json
|
path: dist
|
||||||
|
- run: mkdir ./builds
|
||||||
|
- uses: montudor/action-zip@v0.1.0
|
||||||
|
with:
|
||||||
|
args: zip -qq -r ./builds/ChromeExtension.zip ./dist
|
||||||
|
|
||||||
# Create Chrome artifacts
|
# Create Firefox artifacts
|
||||||
- name: Create Chrome artifacts
|
- name: Create Firefox artifacts
|
||||||
run: npm run build:chrome
|
run: npm run build:firefox
|
||||||
- uses: actions/upload-artifact@v1
|
- uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: ChromeExtension
|
name: FirefoxExtension
|
||||||
path: dist
|
path: dist
|
||||||
- run: mkdir ./builds
|
- uses: montudor/action-zip@v0.1.0
|
||||||
- uses: montudor/action-zip@v0.1.0
|
with:
|
||||||
with:
|
args: zip -qq -r ./builds/FirefoxExtension.zip ./dist
|
||||||
args: zip -qq -r ./builds/ChromeExtension.zip ./dist
|
|
||||||
|
|
||||||
# Create Firefox artifacts
|
# Create Beta artifacts (Builds with the name changed to beta)
|
||||||
- name: Create Firefox artifacts
|
- name: Create Chrome Beta artifacts
|
||||||
run: npm run build:firefox
|
run: npm run build:chrome -- --env.stream=beta
|
||||||
- uses: actions/upload-artifact@v1
|
- uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: FirefoxExtension
|
name: ChromeExtensionBeta
|
||||||
path: dist
|
path: dist
|
||||||
- uses: montudor/action-zip@v0.1.0
|
- uses: montudor/action-zip@v0.1.0
|
||||||
with:
|
with:
|
||||||
args: zip -qq -r ./builds/FirefoxExtension.zip ./dist
|
args: zip -qq -r ./builds/ChromeExtensionBeta.zip ./dist
|
||||||
|
|
||||||
# Create Beta artifacts (Builds with the name changed to beta)
|
- name: Create Firefox Beta artifacts
|
||||||
- name: Create Chrome Beta artifacts
|
run: npm run build:firefox -- --env.stream=beta
|
||||||
run: npm run build:chrome -- --env.stream=beta
|
- uses: actions/upload-artifact@v1
|
||||||
- uses: actions/upload-artifact@v1
|
with:
|
||||||
with:
|
name: FirefoxExtensionBeta
|
||||||
name: ChromeExtensionBeta
|
path: dist
|
||||||
path: dist
|
- uses: montudor/action-zip@v0.1.0
|
||||||
- uses: montudor/action-zip@v0.1.0
|
with:
|
||||||
with:
|
args: zip -qq -r ./builds/FirefoxExtensionBeta.zip ./dist
|
||||||
args: zip -qq -r ./builds/ChromeExtensionBeta.zip ./dist
|
|
||||||
|
|
||||||
- name: Create Firefox Beta artifacts
|
|
||||||
run: npm run build:firefox -- --env.stream=beta
|
|
||||||
- uses: actions/upload-artifact@v1
|
|
||||||
with:
|
|
||||||
name: FirefoxExtensionBeta
|
|
||||||
path: dist
|
|
||||||
- uses: montudor/action-zip@v0.1.0
|
|
||||||
with:
|
|
||||||
args: zip -qq -r ./builds/FirefoxExtensionBeta.zip ./dist
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user