From 62d1a81387215d140297ed71561aabc4ac830f24 Mon Sep 17 00:00:00 2001 From: Ludwig Neste <31670556+The-Ludwig@users.noreply.github.com> Date: Tue, 31 Oct 2023 18:14:32 -0400 Subject: [PATCH] Fix pdm release workflow (#78) * add python cache to workflow * fix release workflow --- .github/workflows/ci.yml | 1 + .github/workflows/release.yml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4ce3d3d..ac1551c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,6 +24,7 @@ jobs: uses: pdm-project/setup-pdm@v3 with: python-version: ${{ matrix.python-version }} + cache: true - name: Install dependencies run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b95922a..5b65ac5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,12 +18,16 @@ jobs: corsika-version: ["77500"] os: [ubuntu-latest] runs-on: ${{ matrix.os }} + permissions: + # IMPORTANT: this permission is mandatory for trusted publishing + id-token: write steps: - uses: actions/checkout@v4 - name: Set up PDM uses: pdm-project/setup-pdm@v3 with: python-version: ${{ matrix.python-version }} + cache: true - name: Install dependencies run: |