Skip to content

Commit 18b2007

Browse files
committed
build: fold update-dist into release workflow
1 parent 1f2c3da commit 18b2007

2 files changed

Lines changed: 18 additions & 41 deletions

File tree

.github/workflows/release.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,29 @@
1616
name: Release
1717
on:
1818
push:
19-
branches:
20-
- main
19+
branches: [ main ]
20+
workflow_dispatch:
21+
2122
jobs:
2223
release:
23-
if: "!contains(github.event.head_commit.message, 'skip ci')"
2424
runs-on: ubuntu-latest
2525
env:
2626
GOOGLE_MAPS_JS_SAMPLES_KEY: "${{ secrets.GOOGLE_MAPS_JS_SAMPLES_KEY }}"
27+
steps:
28+
- uses: actions/checkout@v2
29+
with:
30+
token: ${{ secrets.SYNCED_GITHUB_TOKEN_REPO }}
31+
repository: ${{ github.event.client_payload.pull_request.head.repo.full_name }}
32+
ref: ${{ github.event.client_payload.pull_request.head.ref }}
33+
- run: npm ci
34+
- name: Update dist
35+
run: |
36+
npm run build
37+
git config --global user.name 'googlemaps-bot'
38+
git config --global user.email 'googlemaps-bot@google.com'
39+
git add -f dist
40+
git commit -m "chore: update dist folder [skip ci]" || true
41+
git push origin
2742
steps:
2843
- uses: actions/checkout@v2
2944
with:

.github/workflows/update-dist.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)