Skip to content

Commit

Permalink
1.0.0, change github workflow to one
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinciarka committed Sep 11, 2023
1 parent a098c8a commit 786c9eb
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 47 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/prod-publish-configuration.yaml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/publish-configuration.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Bundle, lint and publish configuration files to S3 bucket

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
environment: prod
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
with:
bun-version: "1.0.0"
- name Lint the config files 🧹
run: bun lint
- name: Build the config files 🍞
run: bun dle
- uses: actions/upload-artifact@v3
with:
name: oazo-configuration
path: ${{ vars.SOURCE_CONFIGURATION_FILE_PATH }}
if-no-files-found: error
- name: Copy a file to AWS S3 bucket 🪣
uses: prewk/s3-cp-action@v2
with:
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws_region: ${{ vars.AWS_DEFAULT_REGION }}
source: ${{ vars.SOURCE_CONFIGURATION_FILE_PATH }}
dest: "s3://${{ vars.AWS_BUCKET_NAME }}/${{ vars.DESTINATION_CONFIGURATION_FILE_PATH }}"
flags: --acl public-read --recursive
23 changes: 0 additions & 23 deletions .github/workflows/staging-publish-configuration.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "oazo-configuration",
"version": "0.0.1",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 786c9eb

Please sign in to comment.