Skip to content

Commit f997ee1

Browse files
authored
Update release.yml
1 parent 6087cc4 commit f997ee1

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
env:
1414
TAR_OPTIONS: "--format=ustar"
1515
PUBLISH_FOR_PULL_REQUEST: true
16+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
1617

1718
steps:
1819
- uses: "actions/checkout@v1"
@@ -27,13 +28,14 @@ jobs:
2728
runs-on: ubuntu-latest
2829
container:
2930
image: electronuserland/builder:wine
30-
volumes:
31-
- ~/.cache/electron:/root/.cache/electron
32-
- ~/.cache/electron-builder:/root/.cache/electron-builder
3331
env:
3432
PUBLISH_FOR_PULL_REQUEST: true
33+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
3534

3635
steps:
36+
- name: Preserve $HOME set in the container
37+
run: echo HOME=/root >> "$GITHUB_ENV"
38+
3739
- uses: "actions/checkout@v1"
3840

3941
- run: npm install
@@ -63,6 +65,6 @@ jobs:
6365
CSC_LINK: "./certificate.p12"
6466
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
6567
PUBLISH_FOR_PULL_REQUEST: true
66-
67-
run: npm run build:mac -- -p always
68+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
6869

70+
run: npm run build:mac -- -p always

0 commit comments

Comments
 (0)