Add latest devices announced at Apple September Event + document upda… #23
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: Check, Build, Process and Release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20.x' | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9 | |
| - run: pnpm install | |
| - run: pnpm prettier . --check --config .prettierrc.json | |
| process: | |
| name: Process | |
| needs: lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20.x' | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9 | |
| - run: pnpm install | |
| - run: node process.mjs | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: generated-lookups | |
| path: output | |
| release: | |
| name: 'Release' | |
| needs: process | |
| if: github.ref == 'refs/heads/main' | |
| runs-on: 'ubuntu-latest' | |
| steps: | |
| - name: Set current date as env variable | |
| run: echo "NOW=$(date +'%Y-%m-%d')" >> $GITHUB_ENV | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: generated-lookups | |
| path: . | |
| - uses: 'marvinpinto/action-automatic-releases@latest' | |
| with: | |
| repo_token: '${{ secrets.GITHUB_TOKEN }}' | |
| automatic_release_tag: '${{ env.NOW }}' | |
| prerelease: false | |
| title: '${{ env.NOW }}' | |
| files: '*.json' |