Update r2s_lienol.yml
This commit is contained in:
28
.github/workflows/r2s_lienol.yml
vendored
28
.github/workflows/r2s_lienol.yml
vendored
@@ -69,8 +69,6 @@ jobs:
|
||||
CONFIG_PACKAGE_luci-app-passwall_INCLUDE_simple-obfs=y
|
||||
CONFIG_PACKAGE_luci-app-passwall_INCLUDE_v2ray-plugin=y
|
||||
CONFIG_PACKAGE_luci-app-smartdns=y
|
||||
CONFIG_PACKAGE_luci-i18n-netdata-zh-cn=y
|
||||
CONFIG_PACKAGE_luci-i18n-smartdns-zh-cn=y
|
||||
CONFIG_PACKAGE_luci-theme-argon-dark-mod=y
|
||||
CONFIG_PACKAGE_luci-theme-argon-light-mod=y
|
||||
CONFIG_PACKAGE_luci-theme-freifunk-generic=y
|
||||
@@ -111,8 +109,26 @@ jobs:
|
||||
mkdir -p ./artifact/
|
||||
mv friendlywrt-rk3328/out/*img* ./artifact/
|
||||
cp friendlywrt-rk3328/friendlywrt/.config ./artifact/
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@master
|
||||
zip -r artifact.zip ./artifact/
|
||||
release_tag="R2S-Lienol-$(date +%Y-%m-%d)"
|
||||
echo "##[set-output name=date_tag;]$date_tag"
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
name: FriendlyWrt_NanoPi-R2S
|
||||
path: ./artifact/
|
||||
tag_name: ${{ steps.assemble_artifact.outputs.release_tag }}
|
||||
release_name: 自动发布 ${{ steps.assemble_artifact.outputs.release_tag }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
- name: Upload Release Asset
|
||||
id: upload-release-asset
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
||||
asset_path: ./artifact.zip
|
||||
asset_name: ${{ steps.assemble_artifact.outputs.release_tag }}-ROM.zip
|
||||
asset_content_type: application/zip
|
||||
|
||||
Reference in New Issue
Block a user