Merge pull request #957 from mchangrh/update-workflow

Update workflow
This commit is contained in:
Ajay Ramachandran
2021-09-21 19:04:20 -04:00
committed by GitHub
3 changed files with 20 additions and 20 deletions

View File

@@ -10,8 +10,8 @@ jobs:
steps: steps:
# Initialization # Initialization
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- uses: actions/setup-node@v1 - uses: actions/setup-node@v2
- run: npm install - run: npm install
- name: Copy configuration - name: Copy configuration
run: cp config.json.example config.json run: cp config.json.example config.json
@@ -23,44 +23,44 @@ jobs:
# Create Chrome artifacts # Create Chrome artifacts
- name: Create Chrome artifacts - name: Create Chrome artifacts
run: npm run build:chrome run: npm run build:chrome
- uses: actions/upload-artifact@v1 - uses: actions/upload-artifact@v2
with: with:
name: ChromeExtension name: ChromeExtension
path: dist path: dist
- run: mkdir ./builds - run: mkdir ./builds
- uses: montudor/action-zip@v0.1.0 - uses: montudor/action-zip@v1
with: with:
args: zip -qq -r ./builds/ChromeExtension.zip ./dist args: zip -qq -r ./builds/ChromeExtension.zip ./dist
# Create Firefox artifacts # Create Firefox artifacts
- name: Create Firefox artifacts - name: Create Firefox artifacts
run: npm run build:firefox run: npm run build:firefox
- uses: actions/upload-artifact@v1 - uses: actions/upload-artifact@v2
with: with:
name: FirefoxExtension name: FirefoxExtension
path: dist path: dist
- uses: montudor/action-zip@v0.1.0 - uses: montudor/action-zip@v1
with: with:
args: zip -qq -r ./builds/FirefoxExtension.zip ./dist args: zip -qq -r ./builds/FirefoxExtension.zip ./dist
# Create Beta artifacts (Builds with the name changed to beta) # Create Beta artifacts (Builds with the name changed to beta)
- name: Create Chrome Beta artifacts - name: Create Chrome Beta artifacts
run: npm run build:chrome -- --env.stream=beta run: npm run build:chrome -- --env.stream=beta
- uses: actions/upload-artifact@v1 - uses: actions/upload-artifact@v2
with: with:
name: ChromeExtensionBeta name: ChromeExtensionBeta
path: dist path: dist
- uses: montudor/action-zip@v0.1.0 - uses: montudor/action-zip@v1
with: with:
args: zip -qq -r ./builds/ChromeExtensionBeta.zip ./dist args: zip -qq -r ./builds/ChromeExtensionBeta.zip ./dist
- name: Create Firefox Beta artifacts - name: Create Firefox Beta artifacts
run: npm run build:firefox -- --env.stream=beta run: npm run build:firefox -- --env.stream=beta
- uses: actions/upload-artifact@v1 - uses: actions/upload-artifact@v2
with: with:
name: FirefoxExtensionBeta name: FirefoxExtensionBeta
path: dist path: dist
- uses: montudor/action-zip@v0.1.0 - uses: montudor/action-zip@v1
with: with:
args: zip -qq -r ./builds/FirefoxExtensionBeta.zip ./dist args: zip -qq -r ./builds/FirefoxExtensionBeta.zip ./dist

View File

@@ -12,8 +12,8 @@ jobs:
steps: steps:
# Initialization # Initialization
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- uses: actions/setup-node@v1 - uses: actions/setup-node@v2
- run: npm install - run: npm install
- name: Copy configuration - name: Copy configuration
run: cp config.json.example config.json run: cp config.json.example config.json
@@ -21,7 +21,7 @@ jobs:
# Create Chrome artifacts # Create Chrome artifacts
- name: Create Chrome artifacts - name: Create Chrome artifacts
run: npm run build:chrome run: npm run build:chrome
- uses: actions/upload-artifact@v1 - uses: actions/upload-artifact@v2
with: with:
name: ChromeExtension name: ChromeExtension
path: dist path: dist
@@ -32,7 +32,7 @@ jobs:
# Create Firefox artifacts # Create Firefox artifacts
- name: Create Firefox artifacts - name: Create Firefox artifacts
run: npm run build:firefox run: npm run build:firefox
- uses: actions/upload-artifact@v1 - uses: actions/upload-artifact@v2
with: with:
name: FirefoxExtension name: FirefoxExtension
path: dist path: dist
@@ -42,7 +42,7 @@ jobs:
# Create Beta artifacts (Builds with the name changed to beta) # Create Beta artifacts (Builds with the name changed to beta)
- name: Create Chrome Beta artifacts - name: Create Chrome Beta artifacts
run: npm run build:chrome -- --env.stream=beta run: npm run build:chrome -- --env.stream=beta
- uses: actions/upload-artifact@v1 - uses: actions/upload-artifact@v2
with: with:
name: ChromeExtensionBeta name: ChromeExtensionBeta
path: dist path: dist
@@ -75,7 +75,7 @@ jobs:
# Firefox Beta # Firefox Beta
- name: Create Firefox Beta artifacts - name: Create Firefox Beta artifacts
run: npm run build:firefox -- --env.stream=beta run: npm run build:firefox -- --env.stream=beta
- uses: actions/upload-artifact@v1 - uses: actions/upload-artifact@v2
with: with:
name: FirefoxExtensionBeta name: FirefoxExtensionBeta
path: dist path: dist
@@ -92,7 +92,7 @@ jobs:
run: sudo apt-get install rename run: sudo apt-get install rename
- name: Rename signed file - name: Rename signed file
run: cd ./web-ext-artifacts ; rename 's/.*/FirefoxSignedInstaller.xpi/' * run: cd ./web-ext-artifacts ; rename 's/.*/FirefoxSignedInstaller.xpi/' *
- uses: actions/upload-artifact@v1 - uses: actions/upload-artifact@v2
with: with:
name: FirefoxExtensionSigned.xpi name: FirefoxExtensionSigned.xpi
path: ./web-ext-artifacts/FirefoxSignedInstaller.xpi path: ./web-ext-artifacts/FirefoxSignedInstaller.xpi

View File

@@ -50,13 +50,13 @@ See the [Wiki](https://github.com/ajayyy/SponsorBlock/wiki) for important links.
The backend server code is available here: https://github.com/ajayyy/SponsorBlockServer The backend server code is available here: https://github.com/ajayyy/SponsorBlockServer
To make sure that this project doesn't die, I have made the database publicly downloadable at https://sponsor.ajay.app/database ([License](https://github.com/ajayyy/SponsorBlock/wiki/Database-and-API-License)). If you are planning on using the database in another project, please read the [API Docs](https://github.com/ajayyy/SponsorBlock/wiki/API-Docs) page for more information. To make sure that this project doesn't die, I have made the database publicly downloadable at https://sponsor.ajay.app/database ([License](https://github.com/ajayyy/SponsorBlock/wiki/Database-and-API-License)). If you are planning on using the database in another project, please read the [API Docs](https://wiki.sponsor.ajay.app/index.php/API_Docs) page for more information.
The dataset and API are now being used in some [ports](https://github.com/ajayyy/SponsorBlock/wiki/3rd-Party-Ports) as well as a [neural network](https://github.com/andrewzlee/NeuralBlock). The dataset and API are now being used in some [ports](https://github.com/ajayyy/SponsorBlock/wiki/3rd-Party-Ports) as well as a [neural network](https://github.com/andrewzlee/NeuralBlock).
# API # API
You can read the API docs [here](https://github.com/ajayyy/SponsorBlockServer#api-docs). You can read the API docs [here](https://wiki.sponsor.ajay.app/index.php/API_Docs).
# Building # Building
@@ -90,7 +90,7 @@ mv ./oss-attribution/attribution.txt ./public/oss-attribution/attribution.txt
# Credit # Credit
The awesome [Invidious API](https://github.com/omarroth/invidious/wiki/API) was previously used, and the server is now using [NewLeaf](https://git.sr.ht/~cadence/NewLeaf) as a to get video info from YouTube. The awesome [Invidious API](https://docs.invidious.io/API.md) was previously used, and the server is now using [NewLeaf](https://git.sr.ht/~cadence/NewLeaf) as a to get video info from YouTube.
Originally forked from [YTSponsorSkip](https://github.com/NDevTK/YTSponsorSkip), but very little code remains. Originally forked from [YTSponsorSkip](https://github.com/NDevTK/YTSponsorSkip), but very little code remains.