Add target="_blank" and rel="noopener noreferrer" to social media lin… #40
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 & Deploy to Netlify" | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, '[ci skip]')" | |
steps: | |
- name: Checking out the repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
submodules: true | |
- uses: cachix/install-nix-action@v17 | |
with: | |
nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/26fe7618c7efbbfe28db9a52a21fb87e67ebaf06.zip | |
extra_nix_config: | |
experimental-features = nix-command flakes | |
- name: Building summer.nixos.org | |
run: | | |
nix build | |
mkdir build | |
cp -RL ./result/* ./build/ | |
- name: Deploy to Netlify | |
uses: nwtgck/[email protected] | |
env: | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | |
with: | |
production-branch: 'main' | |
production-deploy: true | |
publish-dir: './build' | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
deploy-message: 'Deploy from GitHub Actions' | |
enable-pull-request-comment: true | |
enable-commit-comment: true | |
enable-commit-status: true | |
overwrites-pull-request-comment: false | |
if: github.repository == 'NixOS/nixos-summer' |