-
-
Notifications
You must be signed in to change notification settings - Fork 83
35 lines (29 loc) · 761 Bytes
/
cd.yml
File metadata and controls
35 lines (29 loc) · 761 Bytes
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
on:
push:
branches:
- main
name: Update Mailgun
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
env:
working-directory: ./update
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.16.1'
cache: 'npm'
- name: Install dependencies
run: npm ci
working-directory: ${{ env.working-directory }}
- name: Linter
run: npm run lint
working-directory: ${{ env.working-directory }}
- name: Apply changes
run: node update.js iojs.org
working-directory: ${{ env.working-directory }}
env:
MAILGUN_API_KEY: ${{ secrets.MAILGUN_API_KEY }}