Skip to content

Commit

Permalink
Enhance GitHub Actions workflow: streamline branch specification, add…
Browse files Browse the repository at this point in the history
… concurrency settings, and implement caching for apt packages
  • Loading branch information
fynks committed Dec 11, 2024
1 parent 851d4f6 commit 2b2a908
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,29 @@
name: Build and Deploy
on:
push:
branches:
- main
branches: [main]
pull_request:
branches:
- main
branches: [main]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
environment: production
timeout-minutes: 5

steps:
- uses: actions/checkout@v4

- name: Cache apt packages
uses: actions/cache@v3
with:
path: /var/cache/apt
key: ${{ runner.os }}-apt-${{ hashFiles('**/convert.sh') }}

- name: Install pandoc
run: |
sudo apt-get update
Expand Down

0 comments on commit 2b2a908

Please sign in to comment.