forked from PreMiD/Activities
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 789 Bytes
/
release.yml
File metadata and controls
36 lines (33 loc) · 789 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
36
name: Release
on:
push:
branches:
- main
paths:
- '**.ts'
- '**.json'
jobs:
update:
if: github.repository_owner == 'PreMiD'
name: Update activities
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v6
with:
node-version-file: package.json
cache: npm
- name: Install pmd
run: npm ci
- name: Update activities
run: npx pmd release
env:
CONNECT_TO_DEV: ${{ vars.CONNECT_TO_DEV}}
ADMIN_API_KEY: ${{ secrets.ADMIN_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}