Cleanup demo with new data set and menu and removed old example folder. #78
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
# Runs on pushes targeting the default branch | |
push: | |
branches: | |
- main | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
if: github.repository == 'Zehir/godot-hexagon-tile-map-layer' | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v3 | |
- name: Install dependencies | |
run: pnpm install | |
- name: Create Release Pull Request or Publish to npm | |
id: changesets | |
uses: changesets/action@v1 | |
with: | |
publish: pnpm run release | |
version: pnpm run version | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set Release Version | |
if: steps.changesets.outputs.published == 'true' | |
id: get-tag_name | |
run: echo "tag_name=v${{ fromJson(steps.changesets.outputs.publishedPackages)[0].version }}" >> $GITHUB_OUTPUT | |
- name: Create GitHub Release | |
if: steps.changesets.outputs.published == 'true' | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: dist/*.zip | |
generate_release_notes: false | |
tag_name: ${{ steps.get-tag_name.outputs.tag_name }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Godot Asset Lib | |
if: steps.changesets.outputs.published == 'true' | |
uses: deep-entertainment/godot-asset-lib-action@v0.6.0 | |
with: | |
username: Zehir | |
password: ${{ secrets.ASSET_STORE_PASSWORD }} | |
assetId: 3733 | |
assetTemplate: "dist/asset-template.json.hb" |