Skip to content

Commit

Permalink
ci(nightly): try again
Browse files Browse the repository at this point in the history
  • Loading branch information
itschip committed Nov 4, 2023
1 parent 26e3eb2 commit 27fc59c
Showing 1 changed file with 1 addition and 57 deletions.
58 changes: 1 addition & 57 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Bump manifest version
run: node .github/actions/bump-manifest-version.js
env:
TGT_RELEASE_VERSION: ${{ steps.get_tag.outputs.release_tag }}
TGT_RELEASE_VERSION: "${{ steps.get_tag.outputs.release_tag }}"

- name: Push manifest change
uses: EndBug/add-and-commit@v8
Expand All @@ -40,59 +40,3 @@ jobs:
author_name: Manifest Bumper
author_email: 41898282+github-actions[bot]@users.noreply.github.com
message: "chore: bump manifest version to nightly ${{ steps.get_tag.outputs.release_tag }}"

- name: Checkout source code
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.repository.default_branch }}
- name: Install pnpm
uses: pnpm/[email protected]
with:
version: 7.29.1
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: 16.x
cache: 'pnpm'
- name: Install dependencies
run: pnpm i --frozen-lockfile

- name: Run build
run: REACT_APP_VERSION=${{ steps.get_tag.outputs.release_tag }} pnpm build

#- name: Create Sentry Release (NPWD)
# run: |
# curl -sL https://sentry.io/get-cli/ | bash
# export SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}
# export SENTRY_ORG=project-error
# export SENTRY_PROJECT=npwd
# export SENTRY_URL=https://sentry.projecterror.dev/
# export VERSION=${{ steps.get_tag.outputs.VERSION_TAG }}

# sentry-cli releases new "$VERSION"
# sentry-cli releases set-commits "$VERSION" --auto
# sentry-cli releases files "$VERSION" upload-sourcemaps resources/html --ext map --url-prefix '~/resources/html'
# sentry-cli releases finalize "$VERSION"

# sentry-cli releases deploys "$VERSION" new -e production
- name: Bundle built files
run: |
mkdir -p ./temp/npwd/dist
cp ./{LICENSE,README.md,config.json,import.sql,fxmanifest.lua} ./temp/npwd/
cp -r ./dist/{game,html} ./temp/npwd/dist
cd ./temp && zip -r ../npwd.zip ./npwd
- name: Create Release
uses: "marvinpinto/[email protected]"
id: auto_release
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
title: NPWD Nightly
prerelease: true
automatic_release_tag: ${{ steps.get_tag.outputs.release_tag }}
files: npwd.zip

env:
CI: false
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 27fc59c

Please sign in to comment.