diff --git a/.github/workflows/neocities.yml b/.github/workflows/neocities.yml index d0b8b698..33c51d7a 100644 --- a/.github/workflows/neocities.yml +++ b/.github/workflows/neocities.yml @@ -1,4 +1,4 @@ -name: Deploy to neocities +name: Deploy to Neocities # only run on changes to main. Use main or master depending on whatever your default branch is called. on: @@ -6,7 +6,7 @@ on: branches: - main -concurrency: # prevent concurrent deploys doing strange things +concurrency: # Prevent concurrent deploys doing strange things group: deploy-to-neocities cancel-in-progress: true @@ -16,22 +16,25 @@ jobs: steps: - uses: actions/checkout@v4 + # Set up any tools and build steps here - - name: Use Node.js + - name: Set Up Node.js uses: actions/setup-node@v4 with: - node-version: lts/* - # Set up bun - - name: Use Bun + node-version: current + + - name: Set Up Bun uses: oven-sh/setup-bun@v1 with: bun-version: latest - - name: Install deps and build + + - name: Install dependencies and build run: | bun i bun run build - # When the dist_dir is ready, deploy it to neocities - - name: Deploy to neocities + + # When the dist_dir is ready, deploy it to Neocities + - name: Deploy to Neocities uses: bcomnes/deploy-to-neocities@v2.0.2 with: api_token: ${{ secrets.NEOCITIES_API_TOKEN }}