diff options
| author | Henrique Marques <[email protected]> | 2024-09-24 06:41:27 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-09-24 06:41:27 +0000 |
| commit | 2767e58f81e674e3c7e43013f584beef916a1f03 (patch) | |
| tree | 6e7627c57f93facec1360279c0fe994bd44d2ba7 | |
| parent | dceb3ee4424aaf7ec93a3d2fdb91a533f38a79a4 (diff) | |
Update main.yml
| -rw-r--r-- | .github/workflows/main.yml | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e25aa05..c690a73 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,7 +4,7 @@ name: Deploy to Neocities on: push: branches: - - main + - master concurrency: # Prevent concurrent deploys doing strange things group: deploy-to-neocities @@ -12,25 +12,25 @@ concurrency: # Prevent concurrent deploys doing strange things jobs: deploy: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: # Step 1: Check out the repository - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 # Step 2: Set up Hugo (this downloads and installs Hugo) - name: Setup Hugo - uses: peaceiris/actions-hugo@v2 + uses: peaceiris/actions-hugo@v3 with: - hugo-version: 'latest' # You can specify a specific version if needed + hugo-version: '0.119.0' # Step 3: Build the Hugo site - name: Build the Hugo site - run: hugo + run: hugo --minify # Step 4: Deploy the 'public' folder to Neocities - name: Deploy to Neocities - uses: bcomnes/deploy-to-neocities@v2 + uses: bcomnes/[email protected] with: api_token: ${{ secrets.NEOCITIES_API_TOKEN }} # Your Neocities API token stored as a secret cleanup: false |
