Skip to content

Commit

Permalink
remove duplicated release job (#60)
Browse files Browse the repository at this point in the history
* remove duplicated release job
* switch to openwrt-23.05 as latest has no gcc
* fix github workflow for openwrt

---------

Signed-off-by: Andrwe@Gitlab <[email protected]>
  • Loading branch information
Andrwe authored Apr 7, 2024
1 parent 44af590 commit 1497b1c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
actions: read
contents: write
container:
image: openwrt/rootfs:latest
image: openwrt/rootfs:x86-64-23.05.3

steps:
- name: Prepare OPKG
Expand Down
13 changes: 2 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,11 @@ jobs:
- name: Update version
run: sed -i "s/<main>/${GITHUB_REF_NAME}/" privoxy-blocklist.sh

- name: Release
uses: softprops/action-gh-release@v2
if: ${{ startsWith(github.ref, 'refs/tags/') && contains(github.ref, 'a') }}
with:
draft: true
prerelease: true
files: privoxy-blocklist.sh
generate_release_notes: true

- name: Release
uses: softprops/action-gh-release@v2
if: ${{ startsWith(github.ref, 'refs/tags/') }}
with:
draft: ${{ contains(github.ref, 'a') }}
prerelease: ${{ contains(github.ref, 'a') || contains(github.ref, 'rc') }}
draft: True
prerelease: ${{ contains(github.ref, '-a') || contains(github.ref, '-rc') }}
files: privoxy-blocklist.sh
generate_release_notes: true
2 changes: 1 addition & 1 deletion tests/Dockerfile_openwrt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM openwrt/rootfs
FROM openwrt/rootfs:x86-64-23.05.3
# hadolint ignore=DL3018
RUN mkdir /var/lock /var/run
RUN opkg update \
Expand Down
1 change: 1 addition & 0 deletions tests/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ while getopts ":io:r" opt; do
case "${opt}" in
"i")
interactive=1
shift
;;
"o")
os="${OPTARG}"
Expand Down

0 comments on commit 1497b1c

Please sign in to comment.