Skip to content

Commit

Permalink
ci: update github action to release for 3006 branch
Browse files Browse the repository at this point in the history
  • Loading branch information
gnuton committed Jun 29, 2024
1 parent 8c5f08a commit 435d2ff
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ jobs:
fi
# Changelogs are the same for each models since we are building from the same branch. We do use only the one generated by DSL-AX82U for now.
if [[ ${MODEL} == "dsl-ax82u" ]]; then
if [[ ${MODEL} == "gt-be98" ]]; then
cp "${CHANGELOG_FILE}" "${ARTIFACTS_DIR}"
fi
- name: "Archive artifacts"
Expand All @@ -174,7 +174,7 @@ jobs:
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ env.version }}
body_path: /home/runner/work/asuswrt-merlin.ng/asuswrt-merlin.ng/release-dsl-ax82u-default/CHANGELOG
body_path: /home/runner/work/asuswrt-merlin.ng/asuswrt-merlin.ng/release-gt-be98-default/CHANGELOG
draft: true
prerelease: ${{ env.prerelease }}
files: /home/runner/work/asuswrt-merlin.ng/asuswrt-merlin.ng/release*/*
Expand Down Expand Up @@ -202,24 +202,14 @@ jobs:
- name: "Publish Manifest"
env:
UPDATE_DIR: "updates"
CHANGELOG_FILE: "release-dsl-ax82u-default/CHANGELOG"
CHANGELOG_FILE: "release-gt-be98-default/CHANGELOG"
run: |
export CIRCLE_TAG="${GITHUB_REF#refs/*/}"
MAJOR_VER=$(echo "${CIRCLE_TAG}" | sed -E 's/([0-9.]*)[_-]?(.*)/\1/')
MINOR_VER=$(echo "${CIRCLE_TAG}" | sed -E 's/([0-9.]*)[_-]?(.*)/\2/')
RELEASE_NOTE_FILE=$(echo "${MAJOR_VER}_${MINOR_VER}_note.txt" | sed "s/\./_/")
echo "Generating manifest file..."
echo "DSL-AX82U#FW${MAJOR_VER}#EXT${MINOR_VER}" >> ${UPDATE_DIR}/manifest2.txt
echo "RT-AX82U#FW${MAJOR_VER}#EXT${MINOR_VER}" >> ${UPDATE_DIR}/manifest2.txt
echo "RT-AX82U_V2#FW${MAJOR_VER}#EXT${MINOR_VER}" >> ${UPDATE_DIR}/manifest2.txt
echo "RT-AX5400#FW${MAJOR_VER}#EXT${MINOR_VER}" >> ${UPDATE_DIR}/manifest2.txt
echo "TUF-AX5400#FW${MAJOR_VER}#EXT${MINOR_VER}" >> ${UPDATE_DIR}/manifest2.txt
echo "TUF-AX3000#FW${MAJOR_VER}#EXT${MINOR_VER}" >> ${UPDATE_DIR}/manifest2.txt
echo "TUF-AX3000_V2#FW${MAJOR_VER}#EXT${MINOR_VER}" >> ${UPDATE_DIR}/manifest2.txt
echo "RT-AX95Q#FW${MAJOR_VER}#EXT${MINOR_VER}" >> ${UPDATE_DIR}/manifest2.txt
echo "RT-AXE95Q#FW${MAJOR_VER}#EXT${MINOR_VER}" >> ${UPDATE_DIR}/manifest2.txt
echo "RT-AX5400#FW${MAJOR_VER}#EXT${MINOR_VER}" >> ${UPDATE_DIR}/manifest2.txt
echo "RT-AX58U_V2#FW${MAJOR_VER}#EXT${MINOR_VER}" >> ${UPDATE_DIR}/manifest2.txt
echo "GT-BE98#FW${MAJOR_VER}#EXT${MINOR_VER}" >> ${UPDATE_DIR}/manifest_3006.txt
cp ${CHANGELOG_FILE} ${UPDATE_DIR}/"${RELEASE_NOTE_FILE}"
echo "Uploading to github manifest and ${RELEASE_NOTE_FILE}"
git add ${UPDATE_DIR}
Expand Down

0 comments on commit 435d2ff

Please sign in to comment.