Skip to content

Commit

Permalink
Update build and publish.yml and add Swipetor.slnx
Browse files Browse the repository at this point in the history
  • Loading branch information
atas committed Oct 13, 2024
1 parent 7b34cc9 commit 7905105
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 10 deletions.
24 changes: 17 additions & 7 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,21 @@ jobs:
- name: Trigger pull-deploy
run: |
ssh -p1989 ata@${{ secrets.PROD_HOST }} "/opt/swipetor/bin/pull-deploy/run.sh"

deploy:
needs: build_and_test
runs-on: ubuntu-latest
environment: main
steps:
- name: Set up SSH
run: |
mkdir -p ~/.ssh/
ls -lha ~/.ssh
echo "${{ secrets.SSH_KEY }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh-keyscan -p ${{ secrets.SSH_PORT }} ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts
# - name: Commit bumped version
# run: |
# git config user.name "GitHub Actions"
# git config user.email "<[email protected]>"
# git tag -a "v$next_version" -m "Release v$next_version"
# git push origin "v$next_version"
#
- name: Trigger pull-deploy
run: |
ssh -p${{ secrets.SSH_PORT }} ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "/opt/swipetor/bin/pull-deploy/run.sh"
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@ Server-side application for open-source Swipetor videos swiping web app.

Find more information on the UI side of the project at https://github.com/atas/swipetor-ui

Visit https://www.swipetor.com for the demo.
Visit https://demo.swipetor.com for the demo.

## Dual Licensing

- **AGPL-3.0 License**: This is the default and preferred open-source license for the project. For more details, see the [AGPL-3.0 License](LICENSE).
- Different licenes: please contact at https://swipetor.com
- **AGPL-3.0 License**: Default and preferred open-source license for the project. For more details, see
the [AGPL-3.0 License](LICENSE).
- This license allows commercial use, but you should share any modifications you make to the software. Please send a
PR back for any improvements.
- This license restricts multi-tenant or multi-domain usage.
- **Dual Licensing**: Please contact at www.swipetor.com.
-
4 changes: 4 additions & 0 deletions Swipetor.slnx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<Solution>
<Project Path="SwipetorAppTest\SwipetorAppTest.csproj" Type="Classic C#" />
<Project Path="SwipetorApp\SwipetorApp.csproj" Type="Classic C#" />
</Solution>

0 comments on commit 7905105

Please sign in to comment.