Skip to content

Commit

Permalink
timestamp
Browse files Browse the repository at this point in the history
Signed-off-by: Conrad Hübler <Conrad.Huebler@gmx.net>
  • Loading branch information
conradhuebler committed Dec 27, 2024
1 parent 002d5dd commit 18ec1f4
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ jobs:
git submodule update --init --recursive
ls -la
- name: Set Timestamp
run: echo "BUILD_TIMESTAMP=$(date +%Y%m%d_%H%M%S)" >> $GITHUB_ENV

- name: Build noarch
working-directory: /home/mersdk/harbour-tidalplayer
env:
Expand All @@ -35,27 +38,23 @@ jobs:
pwd
mb2 -t SailfishOS-4.6.0.13-aarch64 build
- name: Rename RPM to noarch with timestamp
run: |
cd /home/mersdk/harbour-tidalplayer/RPMS/
TIMESTAMP=$(date +%Y%m%d_%H%M%S)
mv harbour-tidalplayer-*-1.aarch64.rpm "harbour-tidalplayer-master-${TIMESTAMP}-1.noarch.rpm"
mv harbour-tidalplayer-*-1.aarch64.rpm "harbour-tidalplayer-master-${{ env.BUILD_TIMESTAMP }}-1.noarch.rpm"
ls -la
- name: Install curl
run: |
sudo zypper --non-interactive install curl
- name: Upload to Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd /home/mersdk/harbour-tidalplayer/RPMS/
TIMESTAMP=$(date +%Y%m%d_%H%M%S)
curl -X POST \
-H "Authorization: token $GITHUB_TOKEN" \
-H "Content-Type: application/x-rpm" \
--data-binary @"harbour-tidalplayer-master-${TIMESTAMP}-1.noarch.rpm" \
"https://uploads.github.com/repos/conradhuebler/harbour-tidalplayer/releases/148043359/assets?name=harbour-tidalplayer-master-${TIMESTAMP}-1.noarch.rpm"
--data-binary @"harbour-tidalplayer-master-${{ env.BUILD_TIMESTAMP }}-1.noarch.rpm" \
"https://uploads.github.com/repos/conradhuebler/harbour-tidalplayer/releases/148043359/assets?name=harbour-tidalplayer-master-${{ env.BUILD_TIMESTAMP }}-1.noarch.rpm"

0 comments on commit 18ec1f4

Please sign in to comment.