-
Notifications
You must be signed in to change notification settings - Fork 10
47 lines (45 loc) · 1.15 KB
/
staging.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: staging
on:
push:
branches:
- main
jobs:
deploy:
permissions:
contents: read
packages: write
attestations: write
id-token: write
runs-on: ubuntu-latest
environment:
name: staging
url: https://staging.ridebeep.app
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- uses: pnpm/action-setup@v3
name: Install pnpm
id: pnpm-install
with:
version: latest
run_install: false
- uses: actions/setup-node@v4
with:
node-version: latest
cache: 'pnpm'
- name: 📦 install packages
run: pnpm i --frozen-lockfile
- name: Applying infrastructure 🚀
uses: pulumi/actions@v4
with:
command: up
stack-name: ${{ secrets.ENVIRONMENT_NAME }}
work-dir: deploy
env:
secrets: ${{ toJSON(secrets) }}
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}