chore: Gitea Action
Some checks failed
Tag / echo (push) Successful in 20s
Tag / createTagAndChangelog (push) Failing after 1s
Push/PR Steps / BuildAndTest (push) Successful in 7m55s

This commit is contained in:
aminecmi 2024-11-23 15:19:29 +01:00
parent b81abe384a
commit 2aaaff3def
2 changed files with 13 additions and 5 deletions

View File

@ -5,6 +5,11 @@ on:
- release - release
jobs: jobs:
echo:
runs-on: ubuntu-latest
steps:
- name: echo
run: echo 'Hello World'
createTagAndChangelog: createTagAndChangelog:
needs: BuildAndTest needs: BuildAndTest
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -13,6 +18,11 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Config git
run: |
git config --global user.email ${{ secrets.GIT_EMAIL }}
git config --global user.name ${{ secrets.GIT_USER }}
- name: Generating changelog
- name: Creating the tag - name: Creating the tag
run: | run: |
git fetch --tags -p git fetch --tags -p
@ -24,18 +34,16 @@ jobs:
CHANGELOG=$(git log $PREV..HEAD --pretty="- %s") CHANGELOG=$(git log $PREV..HEAD --pretty="- %s")
echo "**$VER**\n\n$CHANGELOG\n\n--------------------------------------------------------------------\n\n$(cat CHANGELOG.md)" > CHANGELOG.md echo "**$VER**\n\n$CHANGELOG\n\n--------------------------------------------------------------------\n\n$(cat CHANGELOG.md)" > CHANGELOG.md
git add CHANGELOG.md git add CHANGELOG.md
git config --global user.email "aminecmi+giteadrone@pm.me"
git config --global user.name "Gitea actions runner"
git commit -m "Changelog for $VER" git commit -m "Changelog for $VER"
git push --tags git push --tags
- name: copy file via ssh password - name: copy file via ssh password
uses: appleboy/scp-action@v0.1.7 uses: appleboy/scp-action@master
with: with:
host: amine-bouabdallaoui.fr host: amine-bouabdallaoui.fr
username: ubuntu username: ubuntu
key: ${{ secrets.PRIVATE_KEY }} key: ${{ secrets.PRIVATE_KEY }}
source: "version.txt" source: "version.txt"
target: "/home/ubuntu/" target: /home/ubuntu/
- name: deploy version file - name: deploy version file
uses: appleboy/ssh-action@v1.2.0 uses: appleboy/ssh-action@v1.2.0
with: with:

View File

@ -1,4 +1,4 @@
# ReaderForSelfoss-multiplatform [![Build Status](https://build.amine-bouabdallaoui.fr/api/badges/Louvorg/ReaderForSelfoss-multiplatform/status.svg)](https://build.amine-bouabdallaoui.fr/Louvorg/ReaderForSelfoss-multiplatform) # ReaderForSelfoss-multiplatform [![Build Status](https://gitea.amine-bouabdallaoui.fr/Louvorg/ReaderForSelfoss-multiplatform/actions/workflows/on_push.yml/badge.svg)](https://gitea.amine-bouabdallaoui.fr/Louvorg/ReaderForSelfoss-multiplatform/actions?workflow=on_push.yml&actor=0&status=0)
[![Crowdin](https://d322cqt584bo4o.cloudfront.net/readerforselfoss/localized.svg)](https://crowdin.com/project/readerforselfoss) [![Crowdin](https://d322cqt584bo4o.cloudfront.net/readerforselfoss/localized.svg)](https://crowdin.com/project/readerforselfoss)