Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/dev-manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,15 @@ jobs:
name: deploy-theme
runs-on: [self-hosted, linux, stage]
steps:
- uses: actions/checkout@v3
- name: setup-git
run: |
git config --global user.name "github-actions"
git config --global user.email "[email protected]"
- name: clone-repo
run: |
git clone https://github.com/${{ github.repository }} repo
cd repo
git checkout ${{ github.sha }}
- name: deploy-theme
run: |
chown -R :client .
Expand Down
15 changes: 11 additions & 4 deletions .github/workflows/prod-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,21 @@ on:

jobs:
deploy-theme:
if: github.ref == 'refs/heads/main'
name: deploy-theme
runs-on: [self-hosted, linux, prod]
steps:
- name: checkout code
uses: actions/checkout@v3

- name: setup-git
run: |
git config --global user.name "github-actions"
git config --global user.email "[email protected]"
- name: clone-repo
run: |
git clone https://github.com/${{ github.repository }} repo
cd repo
git fetch --tags
git checkout tags/${{ github.event.release.tag_name }}
- name: deploy-theme
if: github.ref == 'refs/heads/main'
run: |
chown -R :client .
chmod -R g+w .
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/stage-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,15 @@ jobs:
name: deploy-theme
runs-on: [self-hosted, linux, stage]
steps:
- uses: actions/checkout@v3
- name: setup-git
run: |
git config --global user.name "github-actions"
git config --global user.email "[email protected]"
- name: clone-repo
run: |
git clone https://github.com/${{ github.repository }} repo
cd repo
git checkout ${{ github.ref_name }}
- name: deploy-theme
run: |
chown -R :client .
Expand Down
2 changes: 1 addition & 1 deletion asset/js/sites-filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function ActivateFilter() {
};

function LoadItemSet( id ) {
let url = `/api/items?item_set_id=${id}`;
let url = `/api/items?item_set_id=${id}&sort_by=created&sort_order=desc`;
document.getElementById("site-grid").innerHTML = "";
$.get( url, function( data ) {
data.map(RenderSite);
Expand Down
Loading