Skip to content

Commit

Permalink
nolatest
Browse files Browse the repository at this point in the history
  • Loading branch information
torte71 committed Jan 21, 2023
1 parent daf3b5c commit 33eeb76
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,51 +123,51 @@ jobs:
runs-on: ubuntu-20.04

outputs:
tag-name: ${{ env.TAG_NAME }}
tag-short: ${{ env.TAG_SHORT }}

needs:
- create-source-archive
# - build-linux
# - build-windows

steps:
# move tag: delete old
- name: Delete tag 'Latest'
#uses: dev-drprasad/delete-tag-and-release@v0.2.0
uses: dev-drprasad/delete-tag-and-release@master
with:
delete_release: false
tag_name: Latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# # move tag: create new
# - name: Add tag 'Latest'
# uses: tvdias/github-tagger@v0.0.1
# with:
# repo-token: "${{ secrets.GITHUB_TOKEN }}"
# tag: "Latest"
#
# # move tag: delete old
# - name: Delete tag 'Latest'
# #uses: dev-drprasad/delete-tag-and-release@v0.2.0
# uses: dev-drprasad/delete-tag-and-release@master
# with:
# delete_release: false
# tag_name: Latest
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# # move tag: create new
# - name: Add tag 'Latest'
# uses: tvdias/github-tagger@v0.0.1
# with:
# repo-token: "${{ secrets.GITHUB_TOKEN }}"
# tag: "Latest"

- name: Download all artifacts
uses: actions/download-artifact@v3.0.2

- name: Create Archives
run: |
TAG_NAME=${{ github.ref_name }} # branch or tag
TAG_SHORT=${{ github.ref_name }} # branch or tag
if [[ ${{ github.ref_type }} == 'tag' ]] \
&& [[ $TAG_NAME =~ ^v[0-9] ]] ; then
TAG_NAME=${TAG_NAME:1} # remove leading 'v' from tag (v1.0 -> 1.0)
elif [[ $TAG_NAME == onpush ]] ; then
TAG_NAME=Latest
&& [[ $TAG_SHORT =~ ^v[0-9] ]] ; then
TAG_SHORT=${TAG_SHORT:1} # remove leading 'v' from tag (v1.0 -> 1.0)
elif [[ $TAG_SHORT == onpush ]] ; then
TAG_SHORT=Latest
fi
echo "TAG_NAME=$TAG_NAME" >> "$GITHUB_ENV"
mv gxplugins-source-code/GxPlugins.tar.bz2 ./gxplugins_${TAG_NAME}_src.tar.bz2
#mv gxplugins-linux/gxplugins_*_amd64.deb ./gxplugins_${TAG_NAME}_amd64.deb
#mv gxplugins-windows/plugin.7z ./gxplugins_${TAG_NAME}_win64.7z
echo "TAG_SHORT=$TAG_SHORT" >> "$GITHUB_ENV"
mv gxplugins-source-code/GxPlugins.tar.bz2 ./gxplugins_${TAG_SHORT}_src.tar.bz2
#mv gxplugins-linux/gxplugins_*_amd64.deb ./gxplugins_${TAG_SHORT}_amd64.deb
#mv gxplugins-windows/plugin.7z ./gxplugins_${TAG_SHORT}_win64.7z
- uses: softprops/action-gh-release@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ env.TAG_NAME }}
tag_name: ${{ github.ref_name }}
prerelease: true
files: |
*_src.tar.bz2
Expand Down

0 comments on commit 33eeb76

Please sign in to comment.