Skip to content

fix6

fix6 #565

Workflow file for this run

name: "Publish images"
on:
push:
permissions:
packages: write
jobs:
download-tmce-plugin:
runs-on: ubuntu-latest
steps:
- name: Check and download TMCE plugin
run: |
tmce_jar="tmce-plugin.jar"
if [ -n "${{ secrets.WEBTOP_PR }}" ]; then
echo "Downloading tmce plugin..."
curl -H "Authorization: token ${{ secrets.WEBTOP_PR }}" -H 'Accept: application/vnd.github.v3.raw' -o $tmce_jar -L \
https://api.github.com/repos/nethesis/webtop-tmceplugins/contents/$tmce_jar?ref=master
else
echo "TMCE_TOKEN not set, skipping tmce plugin download"
fi
mv $tmce_jar webtop-tmceplugins.jar
- name: Upload TMCE plugin artifact
uses: actions/upload-artifact@v4
with:
name: tmce-plugin
path: webtop-tmceplugins.jar
download-artifact:
runs-on: ubuntu-latest
needs: download-tmce-plugin
steps:
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: tmce-plugin
publish-images:
if: github.run_number > 1
uses: NethServer/ns8-github-actions/.github/workflows/publish-branch.yml@v1
needs: download-artifact
secrets:
netrcb64: ${{ secrets.NETRCB64 }}