Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Reference Workflow (git archive) | |
on: | |
workflow_dispatch: # Trigger workflow manually | |
release: | |
types: [published] # Trigger when a new release is published | |
jobs: | |
prepare-and-publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # Fetch all history for git info | |
- name: Archive | |
run: git archive --format=zip --output=archive.zip HEAD | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
path: archive.zip | |
# - name: Zip files | |
# uses: vimtor/[email protected] | |
# with: | |
# files: manifest.json icons/ | |
# recursive: false # Keep the directory structure | |
# dest: firefox-brave-search.zip | |
# - name: Publish | |
# uses: yayuyokitano/[email protected] | |
# with: | |
# api_key: ${{ secrets.FIREFOX_JWT_ISSUER }} # | |
# api_secret: ${{ secrets.FIREFOX_JWT_SECRET }} | |
# guid: ${{ secrets.FIREFOX_EXTENSION_ID }} | |
# xpi_path: firefox-brave-search.zip | |
# # src_path: firefox-brave-search-src.zip # Optional |