Poprawiono ogłoszenia z II Niedzieli Adwentu #559
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: Build-n-deploy | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
name: Build and deploy | |
runs-on: ubuntu-latest # ubuntu-18.04 | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@master | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: "12.x" | |
# - run: npm --prefix=public ci | |
- name: Setup ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.6 | |
- run: gem install bundler:2.1.2 | |
- uses: actions/cache@v1 | |
with: | |
path: vendor/bundle | |
key: bundle-use-ruby-${{ matrix.os }}-v3-${{ matrix.ruby }}-${{ hashFiles('**/Gemfile.lock') }} | |
restore-keys: | | |
bundle-use-ruby-${{ matrix.os }}-v3-${{ matrix.ruby }}- | |
- name: bundle install | |
run: | | |
bundle config path vendor/bundle | |
bundle install --jobs 4 --retry 3 | |
- run: (cd public/anielaolsztynek.pl && bundle exec jekyll build) | |
# - run: npm install -g workbox-cli && workbox generateSW workbox-config.js | |
- name: Deploy to Firebase | |
uses: w9jds/[email protected] | |
with: | |
args: deploy --only hosting | |
env: | |
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} |