Start moving to new domain #38
Workflow file for this run
This file contains hidden or 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
| # | |
| # Copyright 2022 Winford (Uncle Grumpy) <[email protected]> | |
| # | |
| # SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later | |
| # | |
| name: Build Test | |
| # Controls when the workflow will run | |
| on: | |
| # Triggers the workflow on push or pull request events but only for the master branch | |
| push: | |
| branches: [ "*" ] | |
| pull_request: | |
| branches: [ "*" ] | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| # A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
| jobs: | |
| # This workflow contains a single job called "build" | |
| build: | |
| # The type of runner that the job will run on | |
| runs-on: ubuntu-latest | |
| # Steps represent a sequence of tasks that will be executed as part of the job | |
| steps: | |
| # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
| - uses: actions/checkout@v3 | |
| - uses: actions/cache@v4 | |
| id: gem-cache | |
| with: | |
| path: /home/runner/.local/share/gem | |
| key: ${{ runner.os }}-${{ hashFiles('**/gem-lockfiles') }} | |
| - name: Install Bundler | |
| if: steps.cache.outputs.gem-cache-hit != 'true' | |
| run: gem install bundler --user-install | |
| - uses: actions/cache@v4 | |
| id: bundler-cache | |
| with: | |
| path: /home/runner/.local/vendor/bundle | |
| key: ${{ runner.os }}-${{ hashFiles('**/bundler-lockfiles') }} | |
| - name: Install Bundler Deps | |
| if: steps.cache.outputs.bundler-cache-hit != 'true' | |
| run: | | |
| export PATH=${PATH}:/home/runner/.local/share/gem/ruby/3.2.0/bin | |
| /home/runner/.local/share/gem/ruby/3.2.0/bin/bundle config set --local path '/home/runner/.local/vendor/bundle' | |
| /home/runner/.local/share/gem/ruby/3.2.0/bin/bundle install | |
| - uses: actions/checkout@v3 | |
| id: checkout-production | |
| with: | |
| repository: atomvm/atomvm_www | |
| ref: Production | |
| path: ./www | |
| - name: Build Site | |
| run: | | |
| /home/runner/.local/share/gem/ruby/3.2.0/bin/bundle exec jekyll build -d www | |
| touch www/.nojekyll | |
| - name: Commit files | |
| working-directory: ./www | |
| run: | | |
| git checkout Production | |
| git branch --show-current | |
| git config --local user.email "[email protected]" | |
| git config --local user.name "AtomVM Doc Bot" | |
| git add . | |
| git commit -m "Update Website Frontend: ${{ github.event.head_commit.message }}" | |
| git log -1 |