Skip to content

Commit

Permalink
minor workflow simplifications
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-wes committed Aug 27, 2024
1 parent c198786 commit 119e776
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/makefile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
# Big thanks to @tomara-x and @timothyschoen for showing me how to do this! -ag

github-release:
if: startsWith(github.ref, 'refs/tags/')
if: github.ref_type == 'tag'
runs-on: ubuntu-latest
needs: [ubuntu-build, macos-build, windows-build]

Expand Down Expand Up @@ -157,13 +157,11 @@ jobs:
- name: check deken package
shell: bash
run: |
SHORT=${GITHUB_REF:10}
VERSION=${SHORT//\//_}
echo "## ${{ matrix.os }}" | tee -a $GITHUB_STEP_SUMMARY
mkdir -p package-${{ matrix.os }}
docker run --rm --user $(id -u) --volume ./pdlua-${{ matrix.os }}:/pdlua \
--volume ./package-${{ matrix.os }}:/package registry.git.iem.at/pd/deken \
deken package --output-dir /package -v "${VERSION}" /pdlua
deken package --output-dir /package -v "${{ github.ref_name }}" /pdlua
dek_files=$(ls package-${{ matrix.os }}/*.dek)
for dek_file in $dek_files; do
Expand Down Expand Up @@ -204,13 +202,11 @@ jobs:
DEKEN_USERNAME: ${{ secrets.DEKEN_USERNAME }}
DEKEN_PASSWORD: ${{ secrets.DEKEN_PASSWORD }}
run: |
SHORT=${GITHUB_REF:10}
VERSION=${SHORT//\//_}
for os in ubuntu macos windows; do
docker run --rm -e DEKEN_USERNAME -e DEKEN_PASSWORD \
--volume ./pdlua-${os}:/pdlua registry.git.iem.at/pd/deken \
deken upload --no-source-error -v "${VERSION}" /pdlua
deken upload --no-source-error -v "${{ github.ref_name }}" /pdlua
done
docker run --rm -e DEKEN_USERNAME -e DEKEN_PASSWORD \
--volume ./pdlua-src:/pdlua registry.git.iem.at/pd/deken \
deken upload -v "${VERSION}" /pdlua
deken upload -v "${{ github.ref_name }}" /pdlua

0 comments on commit 119e776

Please sign in to comment.