11
runs-on: ubuntu-latest
14
uses: actions/checkout@v4
17
uses: actions/setup-node@v4
22
- name: Install dependencies
28
npm run lint -- --no-fix
34
- name: Run circular references check
36
npm run circular-check
42
- name: Create Artifact
45
zip -r ../fluidd.zip ./
47
- name: Get version from tag
50
echo "current_version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
52
- name: Read ChangeLog
53
uses: mindsers/changelog-reader-action@v2.2.0
57
version: ${{ steps.tag_name.outputs.current_version }}
60
- name: Create Release
62
uses: actions/create-release@v1
64
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66
tag_name: ${{ github.ref }}
67
release_name: ${{ github.ref }}
69
${{ steps.changelog.outputs.changes }}
74
id: upload-release-asset
75
uses: actions/upload-release-asset@v1
77
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
79
upload_url: ${{ steps.create_release.outputs.upload_url }}
80
asset_path: ./fluidd.zip
81
asset_name: fluidd.zip
82
asset_content_type: application/zip
84
- name: Upload Artifact
85
uses: actions/upload-artifact@v4
87
name: fluidd-${{ github.sha }}.zip
90
- name: Publish Release
91
uses: eregon/publish-release@v1
93
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
95
release_id: ${{ steps.create_release.outputs.id }}
100
runs-on: ubuntu-latest
106
uses: actions/checkout@v4
108
- name: Download fluidd.zip
109
uses: actions/download-artifact@v4
111
name: fluidd-${{ github.sha }}.zip
114
- name: Prepare Deploy
116
cp ./server/config.json ./dist/config.json
118
- uses: aws-actions/configure-aws-credentials@v4
120
aws-region: us-east-1
121
role-to-assume: ${{ secrets.AWS_GITHUB_ACTIONS_ROLE }}
123
- name: Deploy to Host
124
uses: reggionick/s3-deploy@v4
127
bucket: ${{ secrets.S3_BUCKET_NAME }}
128
bucket-region: us-east-1
129
dist-id: ${{ secrets.CF_DISTRIBUTION_ID }}