Add new telegram converters with attachments grouping and new api fea… #133
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publishing and Deploying | |
on: | |
push: | |
branches: [ "development", "stable" ] | |
release: | |
types: [ "created" ] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Preparing | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 9.0.x | |
- name: Restoring | |
run: dotnet restore | |
- name: Preparing | |
id: get_version | |
run: | | |
VERSION=$(cat Common.Build.props | grep -oP '(?<=<Version>)[^<]+') | |
echo "VERSION=$VERSION" >> $GITHUB_ENV | |
- name: Publishing | |
run: | | |
for dir in ./Sources/*; do | |
if [[ -d "$dir" ]]; then | |
cd "$dir" | |
if [[ ${{ github.event_name }} == "release" ]]; then | |
dotnet publish -c Release --no-restore -p:Version=${{ env.VERSION }} -p:PackageVersion=${{ env.VERSION }} | |
elif [[ "${{ github.ref_name }}" == "stable" ]]; then | |
dotnet publish -c Release --no-restore -p:Version=${{ env.VERSION }}.${{ github.run_number }} -p:PackageVersion=${{ env.VERSION }}.${{ github.run_number }}-beta | |
else | |
dotnet publish -c Release --no-restore -p:Version=${{ env.VERSION }}.${{ github.run_number }} -p:PackageVersion=${{ env.VERSION }}.${{ github.run_number }}-alpha | |
fi | |
cd - | |
fi | |
done | |
- name: Deploying | |
run: | | |
dotnet nuget push --source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json ./Sources/*/Packages/*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} |