Skip to content

Commit

Permalink
ci: add deploy to CF pages
Browse files Browse the repository at this point in the history
  • Loading branch information
flexiondotorg authored Dec 6, 2024
1 parent 31174a8 commit 7a999f3
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/publish-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,12 @@ jobs:
cd guide.ubuntu-mate.org/
scripts/test.sh
- name: Deploy to server
- name: Publish to Cloudflare Pages
if: ${{ github.event_name == 'push' && github.repository == 'ubuntu-mate/ubuntu-mate-guide' }}
run: |
mkdir -p $HOME/.ssh/
chmod 700 $HOME/.ssh/
echo -n "${{ secrets.SSH_MATEY }}" > $HOME/.ssh/id_rsa
chmod 600 $HOME/.ssh/id_rsa
cd guide.ubuntu-mate.org/
scripts/deploy.sh
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: e6fe5e31e8183c8192347f15af553766
projectName: guide-ubuntu-mate-org
directory: build
gitHubToken: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 7a999f3

Please sign in to comment.