diff --git a/.dockerignore b/.dockerignore deleted file mode 100755 index 3535a6b..0000000 --- a/.dockerignore +++ /dev/null @@ -1,5 +0,0 @@ -node_modules -dist -target -package-lock.json -.* diff --git a/.firebaserc b/.firebaserc deleted file mode 100755 index d585736..0000000 --- a/.firebaserc +++ /dev/null @@ -1,5 +0,0 @@ -{ - "projects": { - "default": "schmelczer-dev" - } -} diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml new file mode 100644 index 0000000..be82176 --- /dev/null +++ b/.forgejo/workflows/deploy.yml @@ -0,0 +1,38 @@ +name: Check & deploy + +on: + push: + branches: ['main'] + pull_request: + branches: ['main'] + workflow_dispatch: + +concurrency: + group: 'pages' + cancel-in-progress: false + +jobs: + build: + runs-on: docker + + steps: + - uses: actions/checkout@v4 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: '12' + + - name: Install dependencies + run: | + npm install + + - name: Build + run: | + npm run build + + - name: Copy files to nginx pages mount + if: github.event_name == 'push' && github.ref == 'refs/heads/main' + run: | + apt update && apt install -y rsync + rsync -a --delete --mkpath --chmod=ugo=rwx dist/ /pages/photos/ diff --git a/.gitattributes b/.gitattributes old mode 100755 new mode 100644 diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml deleted file mode 100755 index ced1ca8..0000000 --- a/.github/workflows/main.yaml +++ /dev/null @@ -1,21 +0,0 @@ -name: Deploy site -on: - push: - branches: - - main -jobs: - firebase-deploy: - runs-on: ubuntu-latest - steps: - - name: Checkout current branch with lfs - uses: actions/checkout@master - - name: Build site - run: | - npm install - npm run build - - name: Deploy html - uses: w9jds/firebase-action@master - with: - args: deploy --only hosting:photo-schmelczer-dev --project schmelczer-dev - env: - FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} diff --git a/.gitignore b/.gitignore old mode 100755 new mode 100644 diff --git a/.prettierrc b/.prettierrc old mode 100755 new mode 100644 diff --git a/README.md b/README.md old mode 100755 new mode 100644 index 0ae05e5..a410898 --- a/README.md +++ b/README.md @@ -1,3 +1 @@ -# Photos - -![Deploy everything](https://github.com/schmelczerandras/photos/workflows/Deploy%20everything/badge.svg) +# Photos diff --git a/custom.d.ts b/custom.d.ts old mode 100755 new mode 100644 diff --git a/firebase.json b/firebase.json deleted file mode 100755 index 45fdab2..0000000 --- a/firebase.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "hosting": { - "site": "photo-schmelczer-dev", - "public": "dist", - "ignore": ["firebase.json", "**/.*", "**/node_modules/**"], - "rewrites": [ - { - "source": "**", - "destination": "/index.html" - } - ], - "headers": [ - { - "source": "**/*.@(jpg|jpeg|gif|png|webm|mp4)", - "headers": [ - { - "key": "Cache-Control", - "value": "max-age=31536000" - } - ] - } - ] - } -} diff --git a/og-image.jpg b/og-image.jpg old mode 100755 new mode 100644 index 3f5cbdb..0e58b73 Binary files a/og-image.jpg and b/og-image.jpg differ diff --git a/package.json b/package.json old mode 100755 new mode 100644 diff --git a/src/helper/create-image.ts b/src/helper/create-image.ts old mode 100755 new mode 100644 diff --git a/src/helper/last.ts b/src/helper/last.ts old mode 100755 new mode 100644 diff --git a/src/index.html b/src/index.html old mode 100755 new mode 100644 diff --git a/src/index.scss b/src/index.scss old mode 100755 new mode 100644 diff --git a/src/index.ts b/src/index.ts old mode 100755 new mode 100644 diff --git a/src/model/responsive-image.ts b/src/model/responsive-image.ts old mode 100755 new mode 100644 diff --git a/src/no-change/404.html b/src/no-change/404.html old mode 100755 new mode 100644 diff --git a/src/no-change/robots.txt b/src/no-change/robots.txt old mode 100755 new mode 100644 diff --git a/src/photos.ts b/src/photos.ts old mode 100755 new mode 100644 diff --git a/src/pictures/_DSC1190-Edit.jpg b/src/pictures/_DSC1190-Edit.jpg old mode 100755 new mode 100644 diff --git a/src/pictures/_DSC1484.jpg b/src/pictures/_DSC1484.jpg old mode 100755 new mode 100644 diff --git a/src/pictures/_DSC1834.jpg b/src/pictures/_DSC1834.jpg old mode 100755 new mode 100644 diff --git a/src/pictures/_DSC2313.jpg b/src/pictures/_DSC2313.jpg old mode 100755 new mode 100644 diff --git a/src/pictures/_DSC2362.jpg b/src/pictures/_DSC2362.jpg old mode 100755 new mode 100644 diff --git a/src/pictures/_DSC2674.jpg b/src/pictures/_DSC2674.jpg old mode 100755 new mode 100644 diff --git a/src/pictures/_DSC8718-Edit.jpg b/src/pictures/_DSC8718-Edit.jpg old mode 100755 new mode 100644 diff --git a/src/pictures/adam.jpg b/src/pictures/adam.jpg old mode 100755 new mode 100644 diff --git a/src/pictures/dorka-1.jpg b/src/pictures/dorka-1.jpg old mode 100755 new mode 100644 diff --git a/src/pictures/kezdetazarovonalbol.jpg b/src/pictures/kezdetazarovonalbol.jpg old mode 100755 new mode 100644 diff --git a/src/pictures/nap-2.jpg b/src/pictures/nap-2.jpg old mode 100755 new mode 100644 diff --git a/src/pictures/nyomtatas-10.jpg b/src/pictures/nyomtatas-10.jpg old mode 100755 new mode 100644 diff --git a/src/pictures/nyomtatas-8.jpg b/src/pictures/nyomtatas-8.jpg old mode 100755 new mode 100644 diff --git a/src/pictures/web-1-2.jpg b/src/pictures/web-1-2.jpg old mode 100755 new mode 100644 diff --git a/src/pictures/web-1.jpg b/src/pictures/web-1.jpg old mode 100755 new mode 100644 diff --git a/src/pictures/web-10.jpg b/src/pictures/web-10.jpg old mode 100755 new mode 100644 diff --git a/src/pictures/web-11.jpg b/src/pictures/web-11.jpg old mode 100755 new mode 100644 diff --git a/src/pictures/web-12.jpg b/src/pictures/web-12.jpg old mode 100755 new mode 100644 diff --git a/src/pictures/web-13.jpg b/src/pictures/web-13.jpg old mode 100755 new mode 100644 diff --git a/src/pictures/web-14.jpg b/src/pictures/web-14.jpg old mode 100755 new mode 100644 diff --git a/src/pictures/web-17.jpg b/src/pictures/web-17.jpg old mode 100755 new mode 100644 diff --git a/src/pictures/web-18.jpg b/src/pictures/web-18.jpg old mode 100755 new mode 100644 diff --git a/src/pictures/web-19.jpg b/src/pictures/web-19.jpg old mode 100755 new mode 100644 diff --git a/src/pictures/web-2-2.jpg b/src/pictures/web-2-2.jpg old mode 100755 new mode 100644 diff --git a/src/pictures/web-2.jpg b/src/pictures/web-2.jpg old mode 100755 new mode 100644 diff --git a/src/pictures/web-20.jpg b/src/pictures/web-20.jpg old mode 100755 new mode 100644 diff --git a/src/pictures/web-22.jpg b/src/pictures/web-22.jpg old mode 100755 new mode 100644 diff --git a/src/pictures/web-23.jpg b/src/pictures/web-23.jpg old mode 100755 new mode 100644 diff --git a/src/pictures/web-24.jpg b/src/pictures/web-24.jpg old mode 100755 new mode 100644 diff --git a/src/pictures/web-25.jpg b/src/pictures/web-25.jpg old mode 100755 new mode 100644 diff --git a/src/pictures/web-26.jpg b/src/pictures/web-26.jpg old mode 100755 new mode 100644 diff --git a/src/pictures/web-3-2.jpg b/src/pictures/web-3-2.jpg old mode 100755 new mode 100644 diff --git a/src/pictures/web-3.jpg b/src/pictures/web-3.jpg old mode 100755 new mode 100644 diff --git a/src/pictures/web-4-2.jpg b/src/pictures/web-4-2.jpg old mode 100755 new mode 100644 diff --git a/src/pictures/web-42.jpg b/src/pictures/web-42.jpg old mode 100755 new mode 100644 diff --git a/src/pictures/web-5.jpg b/src/pictures/web-5.jpg old mode 100755 new mode 100644 diff --git a/src/pictures/web-6.jpg b/src/pictures/web-6.jpg old mode 100755 new mode 100644 diff --git a/src/pictures/web-7.jpg b/src/pictures/web-7.jpg old mode 100755 new mode 100644 diff --git a/src/pictures/web-8.jpg b/src/pictures/web-8.jpg old mode 100755 new mode 100644 diff --git a/tsconfig.json b/tsconfig.json old mode 100755 new mode 100644 diff --git a/webpack.config.js b/webpack.config.js old mode 100755 new mode 100644