Fixes workflow and moves package.json to root directory

This commit is contained in:
Joe Carstairs
2024-05-05 21:07:50 +01:00
parent 283495ce22
commit d5c4855a3e
4 changed files with 21 additions and 24 deletions

View File

@@ -30,11 +30,11 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Build with Astro
run: npx astro build
run: npm run build
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: eu-west-2
aws-region: us-east-1
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: Sync S3 bucket
@@ -42,4 +42,5 @@ jobs:
aws configure set aws_access_key_id $AWS_ACCESS_KEY_ID
aws configure set aws_secret_access_key $AWS_SECRET_ACCESS_KEY
aws configure set region eu-west-2
aws s3 sync ./dist/ "s3://joeac.net-$S3_BUCKET_SUFFIX" --delete
aws s3 sync ./website/dist/ "s3://joeac.net-$S3_BUCKET_SUFFIX" --delete

View File

@@ -5,8 +5,6 @@
"requires": true,
"packages": {
"": {
"name": "joeac.net",
"version": "0.0.1",
"dependencies": {
"@astrojs/check": "^0.5.10",
"@astrojs/rss": "^4.0.5",

17
package.json Normal file
View File

@@ -0,0 +1,17 @@
{
"private": "true",
"scripts": {
"dev": "cd website && astro dev",
"start": "cd website && astro dev",
"build": "cd website && astro check && astro build",
"preview": "cd cd website && webiste && astro preview",
"astro": "cd website && astro"
},
"dependencies": {
"@astrojs/check": "^0.5.10",
"@astrojs/rss": "^4.0.5",
"@astrojs/sitemap": "^3.1.2",
"astro": "^4.5.12",
"typescript": "^5.4.3"
}
}

View File

@@ -1,19 +0,0 @@
{
"name": "joeac.net",
"type": "module",
"version": "0.0.1",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro check && astro build",
"preview": "astro preview",
"astro": "astro"
},
"dependencies": {
"@astrojs/check": "^0.5.10",
"@astrojs/rss": "^4.0.5",
"@astrojs/sitemap": "^3.1.2",
"astro": "^4.5.12",
"typescript": "^5.4.3"
}
}