Remove obsolete deploy.sh script #43
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: CI | |
on: [push, pull_request] | |
jobs: | |
Build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.3' | |
bundler-cache: true | |
- name: Install i18n dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install translate-toolkit | |
- name: Build website | |
run: | | |
scripts/build.sh | |
- name: Publish to Cloudflare Pages | |
if: ${{ github.event_name == 'push' && github.repository == 'ubuntu-mate/start.ubuntu-mate.org' && github.ref == 'refs/heads/master' }} | |
uses: cloudflare/pages-action@v1 | |
with: | |
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
accountId: e6fe5e31e8183c8192347f15af553766 | |
projectName: start-ubuntu-mate-org | |
directory: _site | |
gitHubToken: ${{ secrets.GITHUB_TOKEN }} |