Skip to content

Commit

Permalink
Rename testing/beta to nightly.
Browse files Browse the repository at this point in the history
  • Loading branch information
SirStendec committed Oct 12, 2024
1 parent 12ba5d6 commit 1ac92b8
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 24 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/build-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,31 +96,31 @@ jobs:
name: extension
path: frankerfacez-extension-${{ env.FFZ_VERSION }}.${{ env.FFZ_BUILD }}.zip

- name: Now, Testing
- name: Now, Nightly
if: success()
run: |
node scripts/testing-manifest.js
node scripts/nightly-manifest.js
- name: Package Testing
- name: Package Nightly
if: success()
run: |
cd dist
zip -r ../frankerfacez-testing-$FFZ_VERSION.$FFZ_BUILD.zip *
zip -r ../frankerfacez-nightly-$FFZ_VERSION.$FFZ_BUILD.zip *
cd ..
- name: Attest Testing
- name: Attest Nightly
if: success()
uses: actions/attest-build-provenance@v1
with:
subject-path: frankerfacez-testing-${{ env.FFZ_VERSION }}.${{ env.FFZ_BUILD }}.zip
subject-path: frankerfacez-nightly-${{ env.FFZ_VERSION }}.${{ env.FFZ_BUILD }}.zip

- name: Upload Testing
id: artifact-upload-step-testing
- name: Upload Nightly
id: artifact-upload-step-nightly
if: success()
uses: actions/upload-artifact@v4
with:
name: testing
path: frankerfacez-testing-${{ env.FFZ_VERSION }}.${{ env.FFZ_BUILD }}.zip
name: nightly
path: frankerfacez-nightly-${{ env.FFZ_VERSION }}.${{ env.FFZ_BUILD }}.zip

- name: Report Success
if: success()
Expand All @@ -140,7 +140,7 @@ jobs:
[Download Source](<${{ steps.source-upload-step.outputs.artifact-url }}>)
[Download Extension](<${{ steps.artifact-upload-step.outputs.artifact-url }}>)
[Download Testing](<${{ steps.artifact-upload-step-testing.outputs.artifact-url }}>)
[Download Nightly](<${{ steps.artifact-upload-step-nightly.outputs.artifact-url }}>)
- name: Report Failure
if: failure()
Expand Down
13 changes: 13 additions & 0 deletions scripts/nightly-manifest.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
const fs = require('fs');

const manifest = JSON.parse(fs.readFileSync('dist/manifest.json'));

manifest.name = 'FrankerFaceZ Nightly';
manifest.short_name = 'FFZ-Nightly';

manifest.description = `THIS IS THE NIGHTLY BUILD OF FRANKERFACEZ. This extension is for TESTING. Users who aren't interested in testing should use the stable extension. ${manifest.description}`;

if (manifest?.browser_specific_settings?.gecko)
manifest.browser_specific_settings.gecko.id = 'nightly@frankerfacez.com';

fs.writeFileSync('dist/manifest.json', JSON.stringify(manifest, null, '\t'));
13 changes: 0 additions & 13 deletions scripts/testing-manifest.js

This file was deleted.

0 comments on commit 1ac92b8

Please sign in to comment.