-
Notifications
You must be signed in to change notification settings - Fork 62
47 lines (45 loc) · 1.69 KB
/
build-and-publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Build and Publish
on:
push:
branches:
- main
paths:
- '**.json'
- '**.js'
- '**.yml'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Install dependencies
run: npm install
- uses: ./
- name: Run tests
run: npm run test
- uses: jakejarvis/s3-sync-action@7ed8b112447abb09f1da74f3466e4194fc7a6311
with:
args: --acl public-read --follow-symlinks
env:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
SOURCE_DIR: 'generated'
DEST_DIR: 'trackerblocking/config'
- name: Set version variable
run: echo "VERSION=$(jq -r .version ./generated/v4/extension-config.json)" >> $GITHUB_ENV
- name: Generate release description file
uses: ./scripts/
- name: Archive Release
uses: thedoctor0/zip-release@master
with:
type: zip
filename: privacy-configuration.zip
path: generated
- uses: ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5
with:
token: '${{ secrets.GITHUB_TOKEN }}'
name: 'remote-privacy-config-${{ env.VERSION }}'
artifacts: privacy-configuration.zip
tag: ${{ env.VERSION }}
bodyFile: etags.md