diff --git a/.github/workflows/deploy-partykit.yml b/.github/workflows/deploy-partykit.yml new file mode 100644 index 0000000..b63ef27 --- /dev/null +++ b/.github/workflows/deploy-partykit.yml @@ -0,0 +1,23 @@ +name: Deploy PartyKit + +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: "npm" + - run: npm ci + - run: npx partykit deploy + env: + PARTYKIT_TOKEN: ${{ secrets.PARTYKIT_TOKEN }} + PARTYKIT_LOGIN: ${{ secrets.PARTYKIT_LOGIN }}