Skip to content

Commit

Permalink
Merge a382ce5 into 895319d
Browse files Browse the repository at this point in the history
  • Loading branch information
garbas committed Apr 21, 2020
2 parents 895319d + a382ce5 commit 2cc7f4b
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/cron.yml
Expand Up @@ -3,8 +3,9 @@ on:
schedule:
- cron: '0 * * * *'
jobs:
build-and-deploy:
hourly-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
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/main.yml
Expand Up @@ -7,6 +7,7 @@ on:
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
Expand All @@ -17,7 +18,7 @@ jobs:
- name: Update content
run: ./update.sh
- name: Building nixos.org
run: nix-build && mkdir build && cp -RL ./result/* ./build/
run: nix build && mkdir build && cp -RL ./result/* ./build/
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v1.0.5
env:
Expand All @@ -29,3 +30,11 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: 'Deploy from GitHub Actions'
if: github.repository == 'NixOS/nixos-homepage'
- name: Commit flake.lock and push to master branch
uses: github-actions-x/commit@v2.5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
push-branch: 'test'
commit-message: 'Update flake.lock [CI Skip]'
force-add: 'true'
files: flake.lock
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions flake.nix
Expand Up @@ -26,12 +26,12 @@

nixPills = import nix-pills {
inherit pkgs;
revCount = nix-pills.lastModifiedDate; # FIXME
revCount = nix-pills.lastModified; # FIXME
shortRev = nix-pills.shortRev;
};

homepage = stdenv.mkDerivation {
name = "nixos-homepage-${self.lastModifiedDate}";
name = "nixos-homepage-${builtins.toString self.lastModified}";

src = self;

Expand Down
2 changes: 1 addition & 1 deletion update.sh
Expand Up @@ -2,4 +2,4 @@

UPDATE=1 nix run nixpkgs#gnumake nixpkgs#curl -c make update --keep-going || true

nix flake update --update-input released-nixpkgs || true
nix flake update --recreate-lock-file || true

1 comment on commit 2cc7f4b

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.