Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 0 additions & 43 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

36 changes: 14 additions & 22 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,34 +15,26 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20
uses: actions/setup-node@v4
- uses: actions/checkout@v6
- name: Use Node.js 22
uses: actions/setup-node@v6
with:
node-version: 20
- name: Get Timestamp
id: timestamp
node-version: 22
- name: Compute Filename
id: file
run: |
d=$(date +%s)
echo "Current timestamp is ${d}"
echo ::set-output name=now::${d}
- name: Get Version
id: version
run: |
PACKAGE_JSON_PATH="${1-.}"
echo "Reading package.json from ${PACKAGE_JSON_PATH}/package.json"
patch=v$(cat ${PACKAGE_JSON_PATH}/package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g' | tr -d '[[:space:]]')
echo "Got version ${patch}. Now increment it!"
[[ ${patch::-2} =~ ([^0-9].*)([0-9]+) ]]
next="${BASH_REMATCH[1]}$(( ${BASH_REMATCH[2]} + 1 ))"
echo "Assumed next version is ${next}"
echo ::set-output name=next::${next}
- name: Build filename
id: file
run: |
filename=third-stats_${{ steps.version.outputs.next }}-alpha.${{ steps.timestamp.outputs.now }}.xpi
echo "Built filename ${filename}"
echo ::set-output name=name::${filename}
filename=third-stats_${next}-alpha.${d}.xpi
echo "Built filename is ${filename}"
echo "FILENAME=${filename}" >> $GITHUB_OUTPUT
- name: Build app using NPM
run: |
npm install
Expand All @@ -51,17 +43,17 @@ jobs:
shell: bash
run: |
cd dist/
zip -q -r ../${{ steps.file.outputs.name }} ./
zip -q -r ../${{ steps.file.outputs.FILENAME }} ./
- name: Upload add-on nightly build artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: third-stats-nightly
path: ${{ steps.file.outputs.name }}
path: ${{ steps.file.outputs.FILENAME }}
- name: Push add-on to CDN
uses: burnett01/rsync-deployments@7.0.2
uses: burnett01/rsync-deployments@v8
with:
switches: -avzr --delete
path: ${{ steps.file.outputs.name }}
path: ${{ steps.file.outputs.FILENAME }}
remote_path: ${{ secrets.CDN_PATH }}
remote_host: ${{ secrets.CDN_HOST }}
remote_port: ${{ secrets.CDN_PORT }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ jobs:
name: Lint JS
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- run: npx --yes oxlint@1.9.0 --deny-warnings # change to the latest release
Loading