Merge branch 'master' of https://github.com/raycastly/texture-ripper #26
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 and Build | |
| permissions: | |
| contents: write | |
| pages: write | |
| id-token: write | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| release: | |
| runs-on: windows-latest | |
| steps: | |
| # 1. Checkout | |
| - uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| # 2. Setup Node | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: '20' | |
| # 3. Install dependencies | |
| - run: npm ci | |
| # 4. Build Windows app | |
| - run: npm run build:win | |
| # 5. Run Semantic Release + Update version.json | |
| - name: Run Semantic Release and Update Version | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| npx semantic-release | |
| # Update version.json AFTER semantic-release updates package.json | |
| node scripts/update-version.js | |
| # 6. Deploy GitHub Pages | |
| - name: Deploy GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./ |