v10.4.4 #52
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: Upload builds to release | |
on: | |
release: | |
types: | |
- prereleased | |
workflow_dispatch: | |
jobs: | |
release-v10: | |
if: startsWith(github.ref, 'refs/tags/v10') | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: extension-manifest-v3 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set version | |
run: | | |
VERSION=$(node -p "require('./package.json').version") | |
echo "VERSION=$VERSION" >> "$GITHUB_ENV" | |
- name: Get release | |
id: get_release | |
uses: bruceadams/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.tool-versions' | |
cache: 'npm' | |
cache-dependency-path: ./package-lock.json | |
- name: Install dependencies in repo root | |
run: npm ci | |
working-directory: . | |
- name: Build packages | |
run: npm run package -- --simple | |
- name: Upload Firefox build | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
with: | |
upload_url: ${{ steps.get_release.outputs.upload_url }} | |
asset_path: extension-manifest-v3/web-ext-artifacts/ghostery-firefox.zip | |
asset_name: ghostery-firefox-${{ env.VERSION }}.zip | |
asset_content_type: application/gzip | |
- name: Upload Chrome build | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
with: | |
upload_url: ${{ steps.get_release.outputs.upload_url }} | |
asset_path: extension-manifest-v3/web-ext-artifacts/ghostery-chrome.zip | |
asset_name: ghostery-chrome-${{ env.VERSION }}.zip | |
asset_content_type: application/gzip | |
- name: Upload Opera build | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
with: | |
upload_url: ${{ steps.get_release.outputs.upload_url }} | |
asset_path: extension-manifest-v3/web-ext-artifacts/ghostery-opera.zip | |
asset_name: ghostery-opera-${{ env.VERSION }}.zip | |
asset_content_type: application/gzip | |
- name: Upload Edge build | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
with: | |
upload_url: ${{ steps.get_release.outputs.upload_url }} | |
asset_path: extension-manifest-v3/web-ext-artifacts/ghostery-edge.zip | |
asset_name: ghostery-edge-${{ env.VERSION }}.zip | |
asset_content_type: application/gzip |