Skip to content

fix(ci): fix passing password to release (#243) #140

fix(ci): fix passing password to release (#243)

fix(ci): fix passing password to release (#243) #140

name: release-please
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
release-please:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
tag_name: ${{ steps.release.outputs.tag_name }}
release_sha: ${{ steps.release.outputs.sha }}
steps:
- id: release
uses: googleapis/release-please-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
config-file: release-please-config.json
publish:
needs: release-please
if: needs.release-please.outputs.release_created == 'true'
runs-on: ubuntu-latest
name: Publish to Godot Asset Store
steps:
- name: Checkout
uses: actions/checkout@v2
with:
lfs: true
- name: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: 1.46.1
- name: Build & Release
env:
OUTPUT_DIR: /tmp/artifacts/
ASSET_VERSION: ${{ needs.release-please.outputs.tag_name }}
AWS_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}
GODOT_ASSET_LIB_USERNAME: ${{ secrets.GODOT_ASSET_LIBRARY_USERNAME }}
GODOT_ASSET_LIB_PASSWORD: ${{ secrets.GODOT_ASSET_LIBRARY_PASSWORD }}
run: |
./scripts/release.ts
- name: Upload ZIP artifact
uses: actions/upload-artifact@v3
with:
name: rivet-plugin
path: /tmp/artifacts/rivet-plugin-godot.zip