Skip to content

Commit 717f2e7

Browse files
committed
Move env file to top level
1 parent bd03eab commit 717f2e7

File tree

6 files changed

+7
-9
lines changed

6 files changed

+7
-9
lines changed
File renamed without changes.

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525

2626
- uses: microsoft/setup-msbuild@v2
2727

28-
- run: echo ${{ secrets.ENV_FILE }} | base64 --decode > src/.env
28+
- run: echo ${{ secrets.ENV_FILE }} | base64 --decode > .env
2929
shell: bash
3030

3131
- run: scripts\version.ps1

.github/workflows/codeql.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,11 @@ jobs:
3434
uses: github/codeql-action/init@v3
3535
with:
3636
languages: ${{ matrix.language }}
37-
38-
- name: Create env file
39-
run: echo ${{ secrets.ENV_FILE }} | base64 --decode > src/.env
40-
shell: bash
4137

4238
- name: Autobuild
43-
run: dotnet build src\WinDynamicDesktop.csproj
39+
run: |
40+
cp .env.example .env
41+
dotnet build src\WinDynamicDesktop.csproj
4442
4543
- name: Perform CodeQL Analysis
4644
uses: github/codeql-action/analyze@v3

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
- uses: microsoft/setup-msbuild@v2
2323

24-
- run: echo ${{ secrets.ENV_FILE }} | base64 --decode > src/.env
24+
- run: echo ${{ secrets.ENV_FILE }} | base64 --decode > .env
2525
shell: bash
2626

2727
- run: scripts\version.ps1 ${{ github.event.inputs.version }}

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Pull requests are welcome. For major changes, please [open an issue](https://git
88
* .NET desktop deployment
99
* Universal Windows Platform deployment
1010

11-
2. Create an env file by copying `src/.env.example` to `src/.env`. Define the following variables in it:
11+
2. Create an env file by copying `.env.example` to `.env`. Define the following variables in it:
1212
* `LOCATIONIQ_API_KEY` (optional) - [LocationIQ API key](https://help.locationiq.com/support/solutions/articles/36000172496-how-do-i-get-the-api-key-access-token-) used to get latitude and longitude based on city name
1313
* `POEDITOR_API_TOKEN` (optional) - [POEditor API token](https://poeditor.com/account/api) used to test new translations from the POEditor website
1414

src/Properties/Resources.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,6 @@
125125
<value>..\resources\default_themes.yaml;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;iso-8859-1</value>
126126
</data>
127127
<data name="SecretsEnv" type="System.Resources.ResXFileRef, System.Windows.Forms">
128-
<value>..\.env;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
128+
<value>..\..\.env;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
129129
</data>
130130
</root>

0 commit comments

Comments
 (0)