Skip to content
This repository has been archived by the owner on Sep 25, 2024. It is now read-only.

Build

Build #165

Workflow file for this run

name: Build
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
permissions:
contents: write
jobs:
gen:
name: Generate addon files
runs-on: ubuntu-22.04
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Use Node 18
uses: actions/setup-node@v4
with:
node-version: 18
- name: Create the dist
shell: bash
run: |
npm i
./node_modules/.bin/web-ext build
cp dist/fedifox-*.zip fedifox.zip
sed -i -e "s/const DEFAULT_HOST = 'mozilla.social'/const DEFAULT_HOST = 'stage.moztodon.nonprod.webservices.mozgcp.net'/" src/popup/views/initialize.js
./node_modules/.bin/web-ext build
cp dist/fedifox-*.zip fedifox-dev.zip
- name: Storing addon as artifacts
uses: actions/upload-artifact@v4
with:
name: addon
path: |
fedifox.zip
fedifox-dev.zip