-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c025a56
commit 4c18f9e
Showing
1 changed file
with
30 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -188,12 +188,12 @@ jobs: | |
echo "FIRMWARE=$PWD" >> $GITHUB_ENV | ||
echo "status=success" >> ${GITHUB_OUTPUT} | ||
- name: Upload firmware directory | ||
uses: actions/upload-artifact@main | ||
if: steps.organize.outputs.status == 'success' && !cancelled() | ||
with: | ||
name: OpenWrt_firmware${{ env.DEVICE_NAME }}${{ env.FILE_DATE }} | ||
path: ${{ env.FIRMWARE }} | ||
# - name: Upload firmware directory | ||
# uses: actions/upload-artifact@main | ||
# if: steps.organize.outputs.status == 'success' && !cancelled() | ||
# with: | ||
# name: OpenWrt_firmware${{ env.DEVICE_NAME }}${{ env.FILE_DATE }} | ||
# path: ${{ env.FIRMWARE }} | ||
|
||
- name: Upload firmware to cowtransfer | ||
id: cowtransfer | ||
|
@@ -213,27 +213,37 @@ jobs: | |
echo "::warning file=wetransfer.com::$(cat wetransfer.log | grep https)" | ||
echo "url=$(cat wetransfer.log | grep https | cut -f3 -d" ")" >> ${GITHUB_OUTPUT} | ||
- name: Generate release tag | ||
id: tag | ||
if: env.UPLOAD_RELEASE == 'true' && !cancelled() | ||
run: | | ||
echo "release_tag=$(date +"%Y.%m.%d-%H%M")" >> ${GITHUB_OUTPUT} | ||
touch release.txt | ||
[ $UPLOAD_COWTRANSFER = true ] && echo "π [Cowtransfer](${{ steps.cowtransfer.outputs.url }})" >> release.txt | ||
[ $UPLOAD_WETRANSFER = true ] && echo "π [WeTransfer](${{ steps.wetransfer.outputs.url }})" >> release.txt | ||
echo "status=success" >> ${GITHUB_OUTPUT} | ||
# - name: Generate release tag | ||
# id: tag | ||
# if: env.UPLOAD_RELEASE == 'true' && !cancelled() | ||
# run: | | ||
# echo "release_tag=$(date +"%Y.%m.%d-%H%M")" >> ${GITHUB_OUTPUT} | ||
# touch release.txt | ||
# [ $UPLOAD_COWTRANSFER = true ] && echo "π [Cowtransfer](${{ steps.cowtransfer.outputs.url }})" >> release.txt | ||
# [ $UPLOAD_WETRANSFER = true ] && echo "π [WeTransfer](${{ steps.wetransfer.outputs.url }})" >> release.txt | ||
# echo "status=success" >> ${GITHUB_OUTPUT} | ||
|
||
- name: Upload firmware to release | ||
uses: softprops/action-gh-release@v1 | ||
if: steps.tag.outputs.status == 'success' && !cancelled() | ||
uses: ncipollo/[email protected] | ||
# uses: softprops/action-gh-release@v1 | ||
# if: steps.tag.outputs.status == 'success' && !cancelled() | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
name: ${{ env.FILE_DATE }} for ${{ env.OPENWRT_TAG }} ${{ env.EMOJI }} | ||
tag_name: ${{ env.OPENWRT_TAG }} | ||
tag: ${{ env.OPENWRT_TAG }} | ||
# tag_name: ${{ steps.tag.outputs.release_tag }} | ||
body_path: release.txt | ||
files: ${{ env.FIRMWARE }}/* | ||
# body_path: release.txt | ||
# files: ${{ env.FIRMWARE }}/* | ||
allowUpdates: true | ||
body: | | ||
This is OpenWrt firmware for k2p | ||
### π Firmware information | ||
- β½ εΊδ»ΆζΊη : ${{ env.REPO_URL }} | ||
- π ζΊη εζ―: ${{ env.REPO_BRANCH }} | ||
- π Default IP: 192.168.2.1 | ||
- π Default username: root | ||
- π Default password: password | ||
- name: Delete workflow runs | ||
uses: Mattraks/[email protected] | ||
|